Deploy Contractfrom the Contract section on the left navigation panel
_name: "ZZZDAIYYY Pool Token" would make sense, for example, for a liquidity pool with ZZZ, DAI and YYY reserves.
_symbol: Using the symbol "ZZZDAIYYY" would be standard practice for a pool with ZZZ, DAI and YYY reserves.
_decimals: This is the number of decimals on your token's ERC20 contract. We recommend 18.
_token: The address of the pool token created in the previous step.
_maxConversionFee: 30000 (3%) - recommended value. Note that this is not your converter's trading fee.
_reserveToken: Use the first reserve in your liquidity pool for this argument. In this case, you'd use the address of the ZZZ token. The other reserves will be added in the following step.
_reserveRatio: This argument will be the percentage of your pool allocated to the ZZZ token. For example, 20% would mean you would input 200,000
_token: Address of the ERC20 token you want to add (ex: DAI).
_ratio: Share of the pool allocated to this token (ex: 600000 / 60%)
_conversionFee: 1000 (equal to 0.1%) is a common input for this param, but the value is up to you. Recall, that the
maxConversionFeewe set in Step #2 was 30000 or 3% so this would be the theoretical maximum. Most pools set fees between 0 and 0.3%.
issuefunction with the following parameters:
_to: The address to receive the pool tokens for the initial funding. This is likely your address
_amount: This is the amount of pool tokens you'll be issuing. You can use any amount but it should be flexible enough to be able to grow/shrink based on liquidity. It's usually recommended to define an amount equal to the total $ value of all the reserves. So if the pool has 3 reserves with reserve values of $20, $60, and $20 ($100 total), define 100 pool tokens. Recall, we need to enter a value consistent with the number of decimals we defined in Step #1. If we set our Pool Token contract to 18 decimals, you'll need to enter an argument of 100 * 10 ^ 18.
Smart Tokencontract on Etherscan, execute the transferOwnership function with the following parameters:
_newOwner: This is the address of the Converter contract we deployed earlier
Convertercontract on Etherscan, execute the acceptTokenOwnership function