Fix tcs test script
This commit is contained in:
parent
35064d4ab0
commit
c67360071e
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue