Skip to content

Commit 5185a39

Browse files
committed
patch
1 parent da049d7 commit 5185a39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdk/src/math/oracles.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,10 @@ export function isOracleTooDivergent(
103103
.mul(PERCENTAGE_PRECISION)
104104
.div(amm.historicalOracleData.lastOraclePriceTwap5Min);
105105
const maxDivergence = BN.max(
106-
oracleGuardRails.priceDivergence.markOraclePercentDivergence,
107-
PERCENTAGE_PRECISION.div(new BN(10))
106+
oracleGuardRails.priceDivergence.oracleTwap5MinPercentDivergence,
107+
PERCENTAGE_PRECISION.div(new BN(2))
108108
);
109109
const tooDivergent = oracleSpreadPct.abs().gte(maxDivergence);
110-
111110
return tooDivergent;
112111
}
113112

0 commit comments

Comments
 (0)