Preread

Parameter Description

  • The precision for USD is 30. When 1 USD needs to be passed, the corresponding value should be 1 * 1e30.

  • The precision for percentages is 4, meaning basis points. When 1% needs to be passed, the corresponding value should be 100.

  • When passing the number of tokens, the token’s precision should be included. For example, USDT has a precision of 6. When passing 10 USDT, the corresponding value should be 10 * 1e6.

Last updated