Skip to content

Commit

Permalink
chore merge pull request #2 from Swaylend/chore/pyth_stale
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 authored and pseudobun committed Oct 22, 2024
1 parent c873805 commit bff1c10
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,10 +33,10 @@ use sway_libs::ownership::*;
use sway_libs::signed_integers::i256::I256;

// version of the smart contract
const VERSION: u8 = 1_u8;
const VERSION: u8 = 2_u8;

// pyth oracle configuration params
const ORACLE_MAX_STALENESS: u64 = 30; // 30 seconds
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 %

Expand Down

0 comments on commit bff1c10

Please sign in to comment.