Use rawTxBuilder.RawPoolTransactionBuilder.approve
Approve tokens usage by another address on chains
For ETH/USDT: due to specificity of the USDT contract:
If the current allowance is not 0, this function will perform an additional transaction to set allowance to 0 before setting the new allowance value.
Check if the amount of approved tokens is enough
will be used to access the network
true if the amount of approved tokens is enough to make a transfer
Check if the amount of approved tokens is enough
true if the amount of approved tokens is enough to make a transfer
Get amount of tokens approved for poolInfo
will be used to access the network
the amount of approved tokens
Get amount of tokens approved for poolInfo
the amount of approved tokens
Calculates the amount of LP tokens that will be deposited
The float amount of tokens that will be sent
Optional
provider: Providerwill be used to access the network
amount
Calculates the amount of tokens will be withdrawn
The float amount of tokens that will be sent
Optional
provider: Providerwill be used to access the network
amount
Gets information about the poolInfo from chain
Optional
provider: Providerwill be used to access the network
poolInfo
Get User Balance Info on Liquidity poolInfo
Optional
provider: ProviderUserBalanceInfo
will be used to access the network