Skip to content
Discussion options

You must be logged in to vote

Hello @Shawon-Mandal, I am not sure I correctly understand your question, but we are doing those two approvals because we want to send some poolToken and weth to the pool. Since both poolTokenand weth are ERC20, we need to call the approve function on them to approve the address of the TSWAP pool to take our token. Doing so ensures that the transaction successfully goes through whenever we call a function to supply liquidity to the TSWAP pool

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Shawon-Mandal
Comment options

@EngrPips
Comment options

Answer selected by Shawon-Mandal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants