Skip to content

sherlock-audit/2024-08-woofi-solana-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

WOOFi Solana Deployment contest details

Q&A

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

Solana Mainnet


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?

We manually add the supported token pairs into the swap. The initial list is: SOL, USDT, USDC. Any two of them can form a swap pair.


Q: Are there any limitations on values set by admins (or other roles) in the codebase, including restrictions on array lengths?

Functions need admin authority: claim_fee claim_rebate_fee create_oracle create_pool create_rebate_pool deposit set_pool_admin set_pool_state (all handlers in this file) set_woo_admin set_woo_state(all handlers in this file)


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.

No.


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.)?

We have an offchain script, posting the prices of supported tokens (sol, usdt, etc) to Wooracle contract on Solana.


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

NO.


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?

No. Will deploy on Solana.


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.

N/A


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

N/A


Q: We will report issues where the core protocol functionality is inaccessible for at least 7 days. Would you like to override this value?

No.


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

N/A


Q: Please list any relevant protocol resources.

Our swap's market-making formula: https://drive.google.com/file/d/16srlNV45gnZ2zZRKQsjHG-sEMXN_ZqRc/view?usp=sharing


Q: Additional audit information.

no.


Audit scope

WOOFi_Solana @ c7835fbafdb3fe154b2365fea1969058caa9ee09

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published