Audit The World’s First perpetual DEX on Bitcoin
Scope
On what chains are the smart contracts going to be deployed?
BOB
If you are integrating tokens, are you allowing only whitelisted tokens to work with the codebase or any complying with the standard? Are they assumed to have certain properties, e.g. be non-reentrant? Are there any types of weird tokens you want to integrate?
Only standard tokens (without weird traits) will be used.
Are there any limitations on values set by admins (or other roles) in the codebase, including restrictions on array lengths?
n/a but see below re checks and requirements
Are there any limitations on values set by admins (or other roles) in protocols you integrate with, including restrictions on array lengths?
No
For permissioned functions, please list all checks and requirements that will be made before calling the function.
we would only upgrade the oracle extractor as instructed by the oracle provider. fees will be set to something slightly better than industry standard.
Is the codebase expected to comply with any EIPs? Can there be/are there any deviations from the specification?
no
Are there any off-chain mechanisms or off-chain procedures for the protocol (keeper bots, arbitrage bots, etc.)?
liquidation bots are required.
Are there any hardcoded values that you intend to change before (some) deployments?
we are still experimenting with fee scaling in params.vy
If the codebase is to be deployed on an L2, what should be the behavior of the protocol in case of sequencer issues (if applicable)? Should Sherlock assume that the Sequencer won't misbehave, including going offline?
yes sherlock should assume that the sequencer wont go offline
Should potential issues, like broken assumptions about function behavior, be reported if they could pose risks in future integrations, even if they might not be an issue in the context of the scope? If yes, can you elaborate on properties/invariants that should hold?
No
Please discuss any design choices you made.
all nontrival tradeoffs should be commented in the source files.
Please list any known issues and explicitly state the acceptable risks for each known issue.
Issues related to compromised oracle are out-of-scope
We will report issues where the core protocol functionality is inaccessible for at least 7 days. Would you like to override this value?
Yes, 4 hours
Please provide links to previous audits (if any).
Please list any relevant protocol resources.
source code comments, and familiarity with gmx-style perpdexes
Additional audit information.
the main trickiness is around the funding fee calculation, fees.current_fees() and positions.value()
Total Rewards
Contest Pool
Lead Senior Watson
Judging Pool
Lead Judge
35,000 USDC
18,000 USDC
1,600 USDC
1,900 USDC
Status
Scope
Start Time
End Time
Judging Rules