RedStone / redstone-oracle


RedStone is a blockchain Oracle protocol, which proposes a completely new modular design, where data is first put into a data availability layer and then fetched on-chain. This allows us to broadcast a large number of assets at high frequency to a cheaper layer and put it on chain only when required by the protocol.

The @redstone-finance/fuel-connector module implements an alternative design of providing oracle data to smart contracts. Instead of constantly persisting data on the Fuel network storage (by data providers), the information is brought on-chain only when needed (by end users). Until that moment data remains in the DDL (decetrnalized data layer), which is powered by RedStone light data gateways and streamr data broadcasting protocol. Data is transferred to the Fuel network by end users. The information integrity is verified on-chain through signature checking.

https://github.com/redstone-finance/redstone-oracles-monorepo/tree/main/packages/fuel-connector

Prize distribution and scoring

  • Total Prize Pool: $40,000

  • The prize distribution has 2 possible triggers:

    • If one or more valid medium severity findings are found, the total pot size is $20,000
    • If one or more valid high severity findings are found, the total pot size is $40,000
  • Scoring described in the competition scoring page.

  • Findings Severities described in detail on our docs page.

Documentation

Link to the library/contracts documentation:

Scope

Build Instructions

Inside https://github.com/redstone-finance/redstone-fuel-sdk/

Run make build

Inside https://github.com/redstone-finance/redstone-fuel-sdk/packages/fuel-connector/sway

In Makefile define suffix “_adapter” or “_core”:

SUFFIX=_adapter*#_core*

Run make build

Provide any and all instructions needed for how to compile and build the project.

Basic POC Test

Out of scope

Inside *.sw files:

  • do not audit doc/comment messages
  • do not audit functions marked as #[test]/#[test(should_revert)] and functions below any #[test]/#[test(should_revert)] in the file (these are helper test functions)
  • do not audit lines like:
    • use* (with all contained dependencies),
      • const*/pub const*,
      • empty line,
      • single line containing only reserved sway words (like library, where)
      • do not audit files like lib.sw,
      • other library headers (like: src/core.sw /src/crypto.sw /src/lib.sw /src/protocol /src/utils.sw)

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:

$40,000

Findings submitted:

265

Start date:

24 Sep 2024 12:30pm (local time)

End date:

4 Oct 2024 8:00pm (local time)