@drift-labs/sdk 2.13.0-beta.0 → 2.13.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tests/amm/test.ts CHANGED
@@ -206,9 +206,10 @@ describe('AMM Tests', () => {
206
206
  mockAmm.historicalOracleData.lastOraclePriceTwapTs = now.sub(new BN(11));
207
207
 
208
208
  const liveOracleTwap = calculateLiveOracleTwap(
209
- mockAmm,
209
+ mockAmm.historicalOracleData,
210
210
  oraclePriceData,
211
- now
211
+ now,
212
+ mockAmm.fundingPeriod
212
213
  );
213
214
  console.log('liveOracleTwap:', liveOracleTwap.toNumber());
214
215
  assert(liveOracleTwap.eq(new BN(13539488)));