- Limit Order, declaring intent to sell a certain amount of a certain asset in exchange for a different asset at a certain ratio.
- Conditional Transfer, requesting funds to be transferred from one vault to another if some on-chain event was recorded.
- Transfer, requesting funds to be transferred from one vault to another.
assetIdto be sold (or transferred).
assetIdto be bought.
A: order type
vaultIdfrom which the user wants to take funds.
vaultIdinto which the user wants to receive funds.
vaultIdto receive the transferred funds.
quantizedAmountto be sold/transferred.
quantizedAmountto be bought (0 in case of a Transfer and Conditional Transfer order).
noncefor the transaction.
expirationTimestamp, in hours since the Unix epoch. For example, for the order to expire 24 hours from the beginning of the current hour, set the timestamp to
condition, which is the keccak of
FR_addressmasked to 250 bits.
keccak(FR_address, fact)) & 0x03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FR_adddressis a contract address and
factis an uint256.
factbeing registered in
FR_address. In this case, she will sign the following message: