Fix tcs test script

This commit is contained in:
Christian Kamm 2023-07-03 15:23:22 +02:00
parent 35064d4ab0
commit c67360071e
1 changed files with 4 additions and 10 deletions

View File

@ -3,10 +3,7 @@ import { Cluster, Connection, Keypair, PublicKey } from '@solana/web3.js';
import { assert } from 'console'; import { assert } from 'console';
import fs from 'fs'; import fs from 'fs';
import { Bank } from '../../src/accounts/bank'; import { Bank } from '../../src/accounts/bank';
import { import { MangoAccount } from '../../src/accounts/mangoAccount';
MangoAccount,
TokenConditionalSwapPriceThresholdType,
} from '../../src/accounts/mangoAccount';
import { import {
PerpMarket, PerpMarket,
PerpOrderSide, PerpOrderSide,
@ -193,9 +190,8 @@ async function main() {
20000, // liqee only has 1k USDC-native, leverage does not go that far! 20000, // liqee only has 1k USDC-native, leverage does not go that far!
null, null,
0.0, 0.0,
TokenConditionalSwapPriceThresholdType.priceOverThreshold,
100,
1000000.0, 1000000.0,
0.01,
true, true,
true, true,
); );
@ -216,9 +212,8 @@ async function main() {
1000, 1000,
null, null,
0.0, 0.0,
TokenConditionalSwapPriceThresholdType.priceOverThreshold,
100,
1000000.0, 1000000.0,
0.01,
true, true,
true, true,
); );
@ -239,9 +234,8 @@ async function main() {
1000, 1000,
Date.now() / 1000 + 15, // expire in 15s Date.now() / 1000 + 15, // expire in 15s
0.0, 0.0,
TokenConditionalSwapPriceThresholdType.priceOverThreshold,
100,
1000000.0, 1000000.0,
0.01,
true, true,
true, true,
); );