help around flashSwap #35
-
|
Hey everyone, I need help for understanding the last two lines in exercise in flashSwap of uniswap v2(https://github.com/Cyfrin/advanced-defi-2024/blob/main/foundry/test/uniswap-v2/solutions/UniswapV2FlashSwap.sol): Why do we have to transfer fee amount to the this contract: when the fee is included in repaying to pair contract the amount that we borrowed + fee in this last line: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We have to transfer the
I don't understand this question |
Beta Was this translation helpful? Give feedback.
We have to transfer the
feefromcallerbecause they are the one that processed the flash swap and they are responsible for any fee attached to the swap fee process.I don't understand this question