@zetachain/toolkit / getWithdrawFeeInInputToken
Function: getWithdrawFeeInInputToken()
getWithdrawFeeInInputToken(
this
,inputZRC20
,outputZRC20
):Promise
<object
>
Calculates the withdraw fee in the input ZRC20 token for a given output ZRC20 token.
Parameters
• this: ZetaChainClient
• inputZRC20: string
The input ZRC20 token address.
• outputZRC20: string
The output ZRC20 token address.
Returns
Promise
<object
>
- An object containing the withdraw fee amount and its decimals.
amount
amount:
any
decimals
decimals:
any
=inputDecimals