@triadxyz/triad-protocol 2.0.5-beta → 2.0.7-beta
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/dist/trade.js
CHANGED
|
@@ -571,7 +571,7 @@ class Trade {
|
|
|
571
571
|
let linkedSellerBidTradePDA = null;
|
|
572
572
|
if (order.linkedBidOrderId !== '0') {
|
|
573
573
|
const userOrders = yield this.getUserOrders(new web3_js_1.PublicKey(order.authority));
|
|
574
|
-
|
|
574
|
+
linkedSellerBidTradePDA = (0, pda_1.getUserTradePDA)(this.program.programId, new web3_js_1.PublicKey(order.authority));
|
|
575
575
|
const linkedBidOrder = userOrders.find((item) => item.orderId === order.linkedBidOrderId &&
|
|
576
576
|
item.marketId === marketId.toString());
|
|
577
577
|
if (!linkedBidOrder) {
|
|
@@ -2537,7 +2537,6 @@
|
|
|
2537
2537
|
},
|
|
2538
2538
|
{
|
|
2539
2539
|
"name": "filled_shares",
|
|
2540
|
-
"docs": ["The number of shares that have been filled"],
|
|
2541
2540
|
"type": "u64"
|
|
2542
2541
|
},
|
|
2543
2542
|
{
|
|
@@ -2554,17 +2553,14 @@
|
|
|
2554
2553
|
},
|
|
2555
2554
|
{
|
|
2556
2555
|
"name": "price",
|
|
2557
|
-
"docs": ["The price of the order"],
|
|
2558
2556
|
"type": "u64"
|
|
2559
2557
|
},
|
|
2560
2558
|
{
|
|
2561
2559
|
"name": "total_amount",
|
|
2562
|
-
"docs": ["The total amount of TRD/USDC committed to this order"],
|
|
2563
2560
|
"type": "u64"
|
|
2564
2561
|
},
|
|
2565
2562
|
{
|
|
2566
2563
|
"name": "total_shares",
|
|
2567
|
-
"docs": ["The total number of shares to be purchased"],
|
|
2568
2564
|
"type": "u64"
|
|
2569
2565
|
},
|
|
2570
2566
|
{
|
|
@@ -2691,14 +2687,6 @@
|
|
|
2691
2687
|
"name": "total_amount",
|
|
2692
2688
|
"type": "u64"
|
|
2693
2689
|
},
|
|
2694
|
-
{
|
|
2695
|
-
"name": "refund_amount",
|
|
2696
|
-
"type": "u64"
|
|
2697
|
-
},
|
|
2698
|
-
{
|
|
2699
|
-
"name": "pnl",
|
|
2700
|
-
"type": "i64"
|
|
2701
|
-
},
|
|
2702
2690
|
{
|
|
2703
2691
|
"name": "user_nonce",
|
|
2704
2692
|
"type": "u32"
|
|
@@ -3258,7 +3258,6 @@ export type TriadProtocol = {
|
|
|
3258
3258
|
},
|
|
3259
3259
|
{
|
|
3260
3260
|
name: 'filledShares';
|
|
3261
|
-
docs: ['The number of shares that have been filled'];
|
|
3262
3261
|
type: 'u64';
|
|
3263
3262
|
},
|
|
3264
3263
|
{
|
|
@@ -3275,17 +3274,14 @@ export type TriadProtocol = {
|
|
|
3275
3274
|
},
|
|
3276
3275
|
{
|
|
3277
3276
|
name: 'price';
|
|
3278
|
-
docs: ['The price of the order'];
|
|
3279
3277
|
type: 'u64';
|
|
3280
3278
|
},
|
|
3281
3279
|
{
|
|
3282
3280
|
name: 'totalAmount';
|
|
3283
|
-
docs: ['The total amount of TRD/USDC committed to this order'];
|
|
3284
3281
|
type: 'u64';
|
|
3285
3282
|
},
|
|
3286
3283
|
{
|
|
3287
3284
|
name: 'totalShares';
|
|
3288
|
-
docs: ['The total number of shares to be purchased'];
|
|
3289
3285
|
type: 'u64';
|
|
3290
3286
|
},
|
|
3291
3287
|
{
|
|
@@ -3412,14 +3408,6 @@ export type TriadProtocol = {
|
|
|
3412
3408
|
name: 'totalAmount';
|
|
3413
3409
|
type: 'u64';
|
|
3414
3410
|
},
|
|
3415
|
-
{
|
|
3416
|
-
name: 'refundAmount';
|
|
3417
|
-
type: 'u64';
|
|
3418
|
-
},
|
|
3419
|
-
{
|
|
3420
|
-
name: 'pnl';
|
|
3421
|
-
type: 'i64';
|
|
3422
|
-
},
|
|
3423
3411
|
{
|
|
3424
3412
|
name: 'userNonce';
|
|
3425
3413
|
type: 'u32';
|