AWS Community Day CPH - Three problems of Terraform
Limit Orders
1. 1inch Limit Order Protocol
- conditional execution (valid / invalid)
- arbitrary price discovery (you can use any formula for exchange)
- custom callback during the execution (perform any actions before debiting
funds from your account)
3. Order execution
order: filled order structure
signature: signedTypedData_v4 signature for makerAddress = wallet (and any data for makerAddress = smart contract)
makingAmount: amount of makerAsset that you want to buy from maker (if > 0 then takingAmount should be 0)
takingAmount: amount of takerAsset that you want to sell to maker (if > 0 then makingAmount should be 0)
thresholdAmount: min return
7. makerAddress == smart contract
In the case of makerAddress = = smart contract address (your strategy), you should implement isValidSignature function
signature can be any data (not necessarily a real signature)
Example: