Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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