Royco / Royco Protocol


Royco Protocol allows anyone to create a market around any onchain transaction (or series of transactions). Using Royco:

  • Incentive Providers may create intents to offer incentives to users to perform the transaction(s).
  • Users may create intents to complete the transaction(s) and/or negotiate for more incentives.

When these intents satisfy each other, the onchain transaction(s) execute atomically alongside the distribution of incentives. Royco Protocol is entirely non-custodial, trustless, and permissionless. It is also capital-efficient, allowing participants to create many intents with the same assets.

IAMs can be used to find efficient pricing for any onchain action, including depositing, staking, lending, voting, minting an NFT, etc.

Prize distribution and scoring

  • Total Prize Pool: $30,000

  • The prize distribution has 2 possible triggers:

    • If one or more valid medium severity findings are found, the total pot size is $7,500
    • If one or more valid high severity findings are found, the total pot size is $30,000
  • Only High and Medium findings will be considered for the rewards

  • Scoring described in the competition scoring page.

  • Findings Severities described in detail on our docs page.

Documentation

Scope

Contracts

Smart contractnSLOC
WeirollWallet.sol74
RecipeOrderbook.sol442
ERC4626i.sol293
VaultOrderbook.sol123
PointsFactory.sol13
Points.sol58
ERC4626iFactory47

Build Instructions

  • Compile and build:

    • Install foundry
    • forge compile,
    • forge install
    • forge build
  • Basic POC test

    • And can be run with forge test –mt ScenarioTest

Out of scope

Known Issues:

  • Royco allows permissionless vault/recipe creation so honeypots and malicious/broken vaults will need to be filtered out on the frontend

  • Frontend Fee can be “stolen” by manually editing function parameters to pay the frontend fee someone other than the frontend

  • Automated findings by Lightchaser

Contact Us

For any issues or concerns regarding this competition, please reach out to the Cantina core team through the Cantina Discord.

Summary

Status

Completed

Total reward:

$30,000

Findings submitted:

706

Start date:

13 Sep 2024 4:00pm (local time)

End date:

24 Sep 2024 8:00pm (local time)