~350 SLOC complexity forge coverage forge inspect ThunderLoan methods forge inspect ThunderLoan storage
Liquidty providers: someone who deposits money into the protocol to earn interest
- wheres the interest coming from?
- in Tswap : fees from swapping
- in thunderloan : fees from flashloan
ThunderLoan :
Token -> deposit -> assetToken
-
s_flashLoanFee is a storage variable , when we are updating storage gotta emit an event.
-
[OracleUpgradeable.sol] updrageable contracts cant have constructors coz , storage is in -> proxy logic is in -> implementation -> constructor
user (calls) -> proxy -> implementation
- Liquidity providers can deposit assets into
ThunderLoan
and be givenAsset Tokens
in return. These Asset Tokens gain interest over time depending on how often people take out flash loans.
- OracleUpgradeable::getPriceInWeth - can i break this? getPriceinWeth
why we using tswap?