Publication
Partagez vos connaissances.
Add a modifier to executeOperation() in my FlashLoanRecevierBase and receive the funds
Can I add a modifier to executeOperation()
function in my FlashLoanRecevierBase
and still receive the funds?
Being an external fn, I want to limit its accessibility to only "accounts with code" and want to add a modifier to check that
- Aave Protocol
- Aave flashloan
Réponses
1It would be best to add any extra logic at the start of the executeOperation()
function. It is very important to require that the only caller of the ExecuteOperation
function IS the Pool proxy address.
And to also check that initiator is an account owned by the developer to prevent outsiders to call the function.
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.
Gagne ta part de 1000 Sui
Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.
- Error "No matching key" when trying to unstake USDC on BNB chain32
- How to tell the code to, rather than "deposit 1 eth worth of WBTC" deposit "500$ worth of WBTC"?22
- How to interpret configuration field in a response from the getReserveData view function in Aave v2?21
- Getting a return value of '25 - INVALID BURN AMOUNT'21
- Is there any way to stake in the security module on Görli?23