Skip to content

Instantly share code, notes, and snippets.

@zaryab2000
Last active February 9, 2021 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaryab2000/e6802b64561a0584f5c31ef707c48fb1 to your computer and use it in GitHub Desktop.
Save zaryab2000/e6802b64561a0584f5c31ef707c48fb1 to your computer and use it in GitHub Desktop.
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