Last active
February 9, 2021 12:26
-
-
Save zaryab2000/e6802b64561a0584f5c31ef707c48fb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after(async function () { | |
/** SUCCESS CONDITIONS */ | |
// // Attacker has stolen all tokens from the pool | |
expect( | |
await this.token.balanceOf(attacker) | |
).to.be.bignumber.gte(POOL_INITIAL_TOKEN_BALANCE); | |
expect( | |
await this.token.balanceOf(this.lendingPool.address) | |
).to.be.bignumber.eq('0'); | |
// Attacker ETH balance has not decreased | |
expect( | |
await balance.current(attacker) | |
).to.be.bignumber.gte(this.intialAttackerEthBalance); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment