Olas / lockbox-solana
Olas Competition
Olas is a unified network for off-chain services like automation, oracles, co-owned AI. It offers a stack for building services and a protocol for incentivizing their creation and their operation in a co-owned and decentralized way.
The competition at a glance:
- Monday, January 15th 20:00 UTC until Friday, January 26th 20:00 UTC
- $50,000 total prize pool.
Documentation
Further documentation on OLAS tokenomics and OLAS protocol can be found in what follows:
Prize distribution and scoring
The prize distribution works as follows:
- Security reviewers will score points for each finding.
- Prizes are distributed proportionally to the number of points scored.
- A High Severity is worth 10 points, and a Medium Severity 3 points.
- Duplicate findings will be resolved using a scoring formula that incentivizes unique findings.
- Duplicate findings will be resolved using the following scoring formula that incentivizes unique findings:
- Each duplicate finding will be scaled down by 0.9n−1/n0.9^{n - 1} / n0.9n−1/n, where nnn is the # of duplicates.
- 10% of the prize pot is reserved for Low Severity or informational findings. These reports are judged based on quality and researchers are then ranked from 1st to 5th for the purpose of prize allocation:
- 1st: $2.5k
- 2nd: $1.25k
- 3rd: $600
- 4th: $400
- 5th: $250
Scope
Build Instructions
- Pre-requisites and development steps for lockbox can be found here: valory-xyz/lockbox-solana/tree/main/lockbox#readme
- Pre-requisites and development steps for lockbox2 can be found here: valory-xyz/lockbox-solana/tree/main/lockbox2#readme
Basic POC test
- Basic POC for lockbox can be found here: lockbox/tests/lockbox_init.ts
- Basic POC for lockbox 2 can be found here: lockbox2/tests/lockbox_init.ts
Olas Contracts
- Repository: github.com/valory-xyz/lockbox-solana
- Commit: 1736f39671c263311b0cedee290aef7eb9a81ef8
- Total LOC: 1,162
- Files: all files in
src
File | blank | comment | code |
---|---|---|---|
./lockbox/programs/liquidity_lockbox/src/lib.rs | 92 | 77 | 510 |
./lockbox/programs/liquidity_lockbox/src/state.rs | 10 | 13 | 67 |
./lockbox2/programs/liquidity_lockbox/src/lib.rs | 103 | 87 | 547 |
./lockbox2/programs/liquidity_lockbox/src/state.rs | 5 | 7 | 38 |
SUM: | 210 | 184 | 1162 |
Out of Scope issues
Known issues Vulnerabilities_list_solana_lockbox_v1.pdf and any issues documented in the doc folders valory-xyz/lockbox-solana/tree/main/lockbox/doc and valory-xyz/lockbox-solana/tree/main/lockbox2/doc or in the audits folders valory-xyz/lockbox-solana/tree/main/lockbox/audits and valory-xyz/lockbox-solana/tree/main/lockbox2/audits.
Contact us
For any issues or concerns regarding Cantina Competitions or Cantina Code - please reach out to us at Cantina.
Summary
Status
CompletedTotal reward:
$50,000
Findings submitted:
77
Start date:
15 Jan 2024 8:00pm (local time)
End date:
29 Jan 2024 8:00pm (local time)