update contracts and approval logs
This commit is contained in:
@@ -5,11 +5,11 @@ import {Ticker} from '../../src/generated/ManagingApiTypes'
|
||||
|
||||
test('GMX Orders Closing', async (t) => {
|
||||
await t.test('should close all orders for BTC', async () => {
|
||||
const sdk = await getClientForAddress('0x932167388dD9aad41149b3cA23eBD489E2E2DD78')
|
||||
const sdk = await getClientForAddress('0x0b4A132cb6ed8fa66953bf61a53D0B91DaCaAd78')
|
||||
|
||||
const result = await cancelGmxOrdersImpl(
|
||||
sdk,
|
||||
Ticker.ETH
|
||||
Ticker.BTC
|
||||
)
|
||||
console.log('Orders closing result:', result)
|
||||
assert.ok(result, 'Orders closing result should be defined')
|
||||
|
||||
@@ -5,12 +5,12 @@ import {TradeDirection} from '../../src/generated/ManagingApiTypes'
|
||||
|
||||
test('GMX Position Closing', async (t) => {
|
||||
await t.test('should close a long position for BTC', async () => {
|
||||
const sdk = await getClientForAddress('0x932167388dD9aad41149b3cA23eBD489E2E2DD78')
|
||||
const sdk = await getClientForAddress('0x0b4A132cb6ed8fa66953bf61a53D0B91DaCaAd78')
|
||||
|
||||
const result = await closeGmxPositionImpl(
|
||||
sdk,
|
||||
"SUI",
|
||||
TradeDirection.Short
|
||||
"BTC",
|
||||
TradeDirection.Long
|
||||
)
|
||||
console.log('Position closing result:', result)
|
||||
assert.ok(result, 'Position closing result should be defined')
|
||||
|
||||
Reference in New Issue
Block a user