@myx-trade/sdk 0.1.162 → 0.1.163
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1821,7 +1821,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1821
1821
|
// package.json
|
|
1822
1822
|
var package_default = {
|
|
1823
1823
|
name: "@myx-trade/sdk",
|
|
1824
|
-
version: "0.1.
|
|
1824
|
+
version: "0.1.163",
|
|
1825
1825
|
private: false,
|
|
1826
1826
|
publishConfig: {
|
|
1827
1827
|
access: "public"
|
|
@@ -21092,7 +21092,7 @@ var Account = class {
|
|
|
21092
21092
|
async getAvailableMarginBalance({ poolId, chainId, address }) {
|
|
21093
21093
|
try {
|
|
21094
21094
|
const poolListRes = await getPoolList();
|
|
21095
|
-
if (poolListRes.code !==
|
|
21095
|
+
if (poolListRes.code !== 9200) {
|
|
21096
21096
|
throw new MyxSDKError(
|
|
21097
21097
|
"REQUEST_FAILED" /* RequestFailed */,
|
|
21098
21098
|
"Failed to get pool list"
|
package/dist/index.mjs
CHANGED
|
@@ -1731,7 +1731,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1731
1731
|
// package.json
|
|
1732
1732
|
var package_default = {
|
|
1733
1733
|
name: "@myx-trade/sdk",
|
|
1734
|
-
version: "0.1.
|
|
1734
|
+
version: "0.1.163",
|
|
1735
1735
|
private: false,
|
|
1736
1736
|
publishConfig: {
|
|
1737
1737
|
access: "public"
|
|
@@ -21002,7 +21002,7 @@ var Account = class {
|
|
|
21002
21002
|
async getAvailableMarginBalance({ poolId, chainId, address }) {
|
|
21003
21003
|
try {
|
|
21004
21004
|
const poolListRes = await getPoolList();
|
|
21005
|
-
if (poolListRes.code !==
|
|
21005
|
+
if (poolListRes.code !== 9200) {
|
|
21006
21006
|
throw new MyxSDKError(
|
|
21007
21007
|
"REQUEST_FAILED" /* RequestFailed */,
|
|
21008
21008
|
"Failed to get pool list"
|