Checking possible results of the attacker's execution of proposal 21.
|
||
---|---|---|
.vscode | ||
lib | ||
src | ||
test | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
foundry.toml | ||
package.json | ||
README.md | ||
remappings.txt |
Requirements
Installation
git clone --recurse-submodules https://git.tornado.ws/Theo/proposal-21-test.git
Testing
npm run test
Test logic
Hacker added 1 200 000 TORN tokens to staking directly, 10 000 to 100 accounts and 200 000 to one account. He then withdrew 483,000 TORN from the Governance Vault, however, 717,000 remained.
We need to check, that:
- All attacker staked TORNs after proposal 21 will be nullified;
- Governance Vault will be replenished from Governance for 483 000 TORN - the entire amount that he withdrew, to set the ratio of funds locked in staking contract to real tokens in Vault 1: 1
If all tests passed, all good.