-
Notifications
You must be signed in to change notification settings - Fork 239
Prompt for the Fee Asset Data #30
Comments
@dekz maybe you can already give an example how a proper value set would look like in docker-compose.yml ? |
backend:
image: 0xorg/launch-kit-backend:v3
environment:
HTTP_PORT: '3000'
CHAIN_ID: '1'
WHITELIST_ALL_TOKENS: 'true'
FEE_RECIPIENT: '0x0000000000000000000000000000000000000001'
MAKER_FEE_UNIT_AMOUNT: '1'
TAKER_FEE_UNIT_AMOUNT: '1'
MAKER_FEE_ASSET_DATA: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
TAKER_FEE_ASSET_DATA: '0xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
MESH_ENDPOINT: 'ws://mesh:60557'
ports:
- '3000:3000' Should set the correct values when the order is created. Here both Maker and Taker fees are in WETH |
... and ..._FEE_UNIT_AMOUNT is whatever smallest unit that currency has, so in case of (W)ETH it would be 10^-18 ETH = 1 wei or is it percent of trade volume? |
You are correct, for WETH it is wei. Percentage based fees is not currently supported. |
|
Got a error while creating order:
My setup is:
|
@dekz Can either of these fees be set to a relative address, for example can we take the maker side fee in wETH and then the taker side fee in the counter-party token? Such as by echoing out the relevant address on each call? Since it is an open order relayer and has a forwarding contract I imagine we could set one of the fees to a specific token if we were only trading one pair ETH/[X], but its unclear how it would work if multiple pair types are available. |
V2 assumed ZRX was the fee asset data and no prompt was made. In V3 Fee Asset data can be any token and isn't being set in the wizard.
MAKER_FEE_ASSET_DATA
andTAKER_FEE_ASSET_DATA
should be set in the backend container.Prompt for the ERC20 contract address and encode as ERC20 asset data for the golden path.
The text was updated successfully, but these errors were encountered: