Executing the trade
The gasless trade has to be executed by us, given that we pay the gas instead of the user
Gasless Trading Flow
1. Retrieve Typed Data
{
"transactionData": {
"info": {
"feeReceiver": "0xf4AA7a82B1d7f30Ca22D306c5eC429CF8AF160ef",
"feePercent": 0,
...
},
"call": [
{
"targetExchange": "0x1F721E2E82F6676FCE4eA07A5958cF098D339e18",
"targetExchangeID": "camelotv3",
"sellToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"buyToken": "0x0000000000000000000000000000000000000000",
"amountDelta": "1972679740777741",
"amount": "6603531",
"data": "0xac9650d80000...00000000000000000"
}
],
"version": "v2",
"amountInAfterFee": "6603531",
"amountInBeforeFee": "6623429",
"fee": "19898"
},
"sender": "0x2472d3EF4bF71af00c3dE490a5a53A99CbAC0791",
"chainId": 42161
}2. User Signs the Typed Data
3. Create the Order
4. Cancel the Order (Optional)
Summary of Workflow
Key Notes
Last updated