Cover image
Blog icontanh
Apr 7

Damn Vulnerable Defi #3 : Truster Solution

ProblemA lending pool has 1 million DVT tokens and is offering flash loans. Our task is to drain the pool of all funds. The title of the challenge has a little hint in it, too much trust in the smart contract world is a road to a lot of pain. But I’m getting ahead of myself, let’s take a look at the contract:TrusterLenderPool.solWe see that there is a flash loan function that sends over some tokens to the borrower that gets passed in. After sending tokens in, a functionCall is made to the tar...

tanh

Written by
tanh

Exploring web3 with a focus on security. Currently learning in public, support me by collecting posts!

Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

tanh

Subscribe