Skip to content

Commit

Permalink
chore: increase oracle max conf width (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Feb 2, 2025
1 parent 4edc4e7 commit 608ce7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/market/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ use sway_libs::ownership::*;
use sway_libs::signed_integers::i256::I256;

// version of the smart contract
const VERSION: u8 = 4_u8;
const VERSION: u8 = 5_u8;

// pyth oracle configuration params
const ORACLE_MAX_STALENESS: u64 = 60; // 60 seconds
const ORACLE_MAX_AHEADNESS: u64 = 60; // 60 seconds
const ORACLE_MAX_CONF_WIDTH: u256 = 100; // 100 / 10000 = 1.0 %
const ORACLE_MAX_CONF_WIDTH: u256 = 300; // 300 / 10000 = 3.0 %

// This is set during deployment of the contract
configurable {
Expand Down

0 comments on commit 608ce7f

Please sign in to comment.