Skip to content

Sherlock

Velar Artha PerpDEX

Every publicly disclosed report for Velar Artha PerpDEX and what kind of bugs they were.

disclosed reports
12
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Velar Artha PerpDEX on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Velar Artha PerpDEX chose to make public.

Audit finding

Fee Precision Loss Disrupts Liquidations and Causes Loss of Funds

Borrowing and funding fee calculations suffer from two sources of precision loss: a fixed denominator that rounds down small fees, and a utilization calculation that truncates to whole percentage points. An attacker could exploit this to consistently underpay fees, delaying liquidations and causing LPs to lose funds.

Velar Artha PerpDEX

High
DoS

First depositor could DoS the pool

The first depositor can add a tiny amount of liquidity such that the pool's value rounds down to zero if the price drops slightly. Then any subsequent deposit attempt fails due to a division by zero, blocking the pool until the price recovers.

Velar Artha PerpDEX

Medium
Business logic

Funding Paid != Funding Received

The funding fee accounting in the Velar Artha protocol can result in a position paying funding fees but not receiving the corresponding amount, breaking the invariant that total funding received equals total funding paid. This can lead to stuck funds and dilution of fees for future recipients.

Velar Artha PerpDEX

Medium
DoS

Not decreasing oracle timestamp validation leads to DoS for protocol users

The protocol requires oracle price timestamps to be non-decreasing, so a transaction with a newer timestamp causes all transactions with older timestamps to revert. An attacker can regularly submit transactions with the newest prices to block other users' time-sensitive actions.

Velar Artha PerpDEX

Medium
Audit finding

Funding fee will be zero because of precision loss

The funding fee calculation suffers from precision loss because utilization is computed with integer division that rounds down to zero for small positions, causing the funding fee to be zero. An attacker could open a small position and pay no funding fee, while liquidity providers lose the fee they should have earned.

Velar Artha PerpDEX

Medium
Business logic

LPs cannot specify min amount received in burn function, causing loss of fund for them

Liquidity providers cannot set a minimum amount of base or quote tokens to receive when burning LP tokens, so their payout can be reduced by other transactions that change the pool reserves before their burn executes. An attacker or simply another user closing a profitable position can cause the LP to receive less than expected, leading to a financial loss.

Velar Artha PerpDEX

Medium
Business logic

User can sandwich their own position close to get back all of their position fees

Borrowing fees are only distributed to liquidity providers when a position is closed, so a user can flashloan a large sum, add it as liquidity, close their position to receive most of the fees back, then withdraw the liquidity and repay the loan. This lets users avoid paying borrowing fees, stealing them from LPs.

Velar Artha PerpDEX

High
Access control

Usage of `tx.origin` to determine the user is prone to attacks

The smart contract uses tx.origin to identify the user on whose behalf a function is called, which can be exploited by a malicious contract to act on the user's behalf. An attacker could trick a user into interacting with a malicious contract, leading to loss of funds.

Velar Artha PerpDEX

Medium