Hunt prep
Before you test Velar Artha PerpDEX
What 12 disclosed reports say about Velar Artha PerpDEX: 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 | 5 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Access control 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.
-
Fee Precision Loss Disrupts Liquidations and Causes Loss of Funds
The precision of both the fee denominator and the utilization calculation should be increased to reduce rounding errors.
Disclosed
-
LPs will withdraw more value than deposited during pegged token de-peg events
The protocol should use the base-token/quote-token price directly if available, or derive it from the base-token/USD and quote-token/USD prices.
Disclosed
-
First depositor could DoS the pool
Add a minimum liquidity requirement to prevent the first depositor from creating a pool with a value that can round down to zero.
Disclosed
-
Funding Paid != Funding Received
The report recommends an alternative accounting method, such as tracking unpaid funding fees and adjusting future distributions pro rata for that token.
Disclosed
-
Invalid Redstone oracle payload size prevents the protocol from working properly
The upperbound size of the payload array should be increased to accommodate the Redstone oracle payload size.
Disclosed
-
Not decreasing oracle timestamp validation leads to DoS for protocol users
Remove the non-decreasing timestamp validation and instead compare the oracle timestamp with the current block timestamp.
Disclosed
-
Funding fee will be zero because of precision loss
The mitigation suggests scaling up the utilization values or setting a minimum value for them.
Disclosed
-
LPs cannot specify min amount received in burn function, causing loss of fund for them
The burn function should be fixed by adding minimum base and quote amount parameters (or a minimum asset value) so that LPs can specify a slippage tolerance.
Disclosed
-
User can sandwich their own position close to get back all of their position fees
The protocol team fixed this issue in a pull request.
Disclosed
-
Usage of `tx.origin` to determine the user is prone to attacks
Instead of using tx.origin in core.vy, simply pass msg.sender as a parameter from api.vy.
Disclosed