@triadxyz/triad-protocol 1.7.8-beta → 1.8.0-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 +2 -1
- package/dist/utils/helpers.js +1 -1
- package/package.json +1 -1
package/dist/trade.js
CHANGED
|
@@ -516,7 +516,8 @@ class Trade {
|
|
|
516
516
|
signer: this.provider.publicKey,
|
|
517
517
|
market: marketPDA,
|
|
518
518
|
userTrade: userTradePDA,
|
|
519
|
-
mint
|
|
519
|
+
mint,
|
|
520
|
+
tokenProgram: (0, helpers_1.getTokenProgram)(mint)
|
|
520
521
|
}), options);
|
|
521
522
|
}
|
|
522
523
|
return (0, sendTransactionWithOptions_1.default)(this.program.methods.cancelAskOrder(new bn_js_1.default(orderId)).accounts({
|
package/dist/utils/helpers.js
CHANGED
|
@@ -113,7 +113,7 @@ const formatUserTrade = (account, publicKey) => {
|
|
|
113
113
|
totalDeposits: account.totalDeposits.toString(),
|
|
114
114
|
totalWithdraws: account.totalWithdraws.toString(),
|
|
115
115
|
openedOrders: account.openedOrders.toString(),
|
|
116
|
-
orders: account.orders.map((order) => (0, exports.formatOrder)(order,
|
|
116
|
+
orders: account.orders.map((order) => (0, exports.formatOrder)(order, account.authority.toString())),
|
|
117
117
|
nonce: account.nonce.toString(),
|
|
118
118
|
poseidon: account.poseidon ? account.poseidon.toString() : '',
|
|
119
119
|
isSubUser: account.isSubUser
|