forked from Theo/proposal-21-test
28 lines
935 B
Markdown
28 lines
935 B
Markdown
## Requirements
|
|
|
|
- Foundryup ([Windows](https://github.com/altugbakan/foundryup-windows), [Linux](https://book.getfoundry.sh/getting-started/installation))
|
|
- Node 14 or higher ([Windows](https://github.com/coreybutler/nvm-windows), [Linux](https://github.com/nvm-sh/nvm))
|
|
|
|
## 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:
|
|
|
|
1. All attacker staked TORNs after proposal 21 will be nullified;
|
|
2. 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. |