About Handler.t.sol in TSwap. #270
GaurangBharadava
started this conversation in
General
Replies: 1 comment 4 replies
-
We are checking the pool balance and getting the started and ending values to ensure that what was deposited was what we intended to deposit. And we also need to approve the pool so that the pool will be able to take from us the tokens that we want to deposit to the pool. Ask questions if anything is confusing. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After a long time i have continued my security course.
So the thing i am not understanding is
deposit
function inHandler.t.sol
.like why we are checking balance of handler contract to get starting and ending value of X and Y. an also why we are approving the pool to deposite tokens amount.
Beta Was this translation helpful? Give feedback.
All reactions