Skip to content

sherlock-audit/2024-08-velar-artha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Velar Artha contest details

Q&A

Q: On what chains are the smart contracts going to be deployed?

BOB


Q: 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.


Q: 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


Q: Are there any limitations on values set by admins (or other roles) in protocols you integrate with, including restrictions on array lengths?

No


Q: 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.


Q: Is the codebase expected to comply with any EIPs? Can there be/are there any deviations from the specification?

no


Q: Are there any off-chain mechanisms or off-chain procedures for the protocol (keeper bots, arbitrage bots, etc.)?

liquidation bots are required.


Q: Are there any hardcoded values that you intend to change before (some) deployments?

we are still experimenting with fee scaling in params.vy


Q: 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


Q: 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


Q: Please discuss any design choices you made.

all nontrival tradeoffs should be commented in the source files.


Q: Please list any known issues and explicitly state the acceptable risks for each known issue.

Issues related to compromised oracle are out-of-scope


Q: 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


Q: Please provide links to previous audits (if any).

https://github.com/Thesis-Defense/Security-Audit-Reports/blob/main/PDFs/240717_Thesis_Defense-Velar_Vyper_Smart_Contracts_Security_Audit_Report.pdf


Q: Please list any relevant protocol resources.

source code comments, and familiarity with gmx-style perpdexes


Q: Additional audit information.

the main trickiness is around the funding fee calculation, fees.current_fees() and positions.value()


Audit scope

gl-sherlock @ 0e291ffee5e1239efbd01a080f393af59772ae47

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published