Hunt prep
Before you test Tokensoft
What 7 disclosed reports say about Tokensoft: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 6 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
"Votes" balance can be increased indefinitely in multiple contracts
The contracts were fixed by allowing re-initialisation but ensuring that repeated calls do not increase a user's voting power.
Disclosed
-
CrosschainDistributor: Not paying relayer fee when calling xcall to claim tokens to other domains
The function was made payable so that the relayer fee can be passed along with the xcall.
Disclosed
-
In `PriceTierVesting` there is no check if the Sequenzer for L2s is up when calling the oralce
The issue was fixed by adding a check for the sequencer uptime before using the oracle price, implemented in a new contract that checks whether the sequencer is up.
Disclosed
-
Because of rounding issues, users may not be able to withdraw airdrop tokens if their claim has been adjust()'ed upwards
The fix was to burn the minimum of the expected voting token quantity and the current balance to avoid rounding issues.
Disclosed
-
setVoteFactor() does not change existing supply of votes. As a result, some may be unable to withdraw
The issue was fixed by adding a function to update voting power when claiming and initialising the distribution.
Disclosed
-
Loss of funds during user adjusting
The fix was to use the stored total from records[beneficiary].total instead of the purchased amount when re-initializing the distribution record.
Disclosed
-
`SafeERC20.safeApprove` reverts for changing existing approvals
The code was fixed by setting the approval to zero before setting the new approval amount.
Disclosed