@aurigami/sdk 1.8.3 → 1.8.5
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/entities/tokenAmount.d.ts +3 -2
- package/dist/sdk.cjs.development.js +26 -4
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +26 -4
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/consts/constants.ts +6 -0
- package/src/contracts/misc.ts +1 -1
- package/src/entities/tokenAmount.ts +7 -3
package/dist/sdk.esm.js
CHANGED
|
@@ -161,6 +161,24 @@ var REFERRAL_CAMPAIGNS = /*#__PURE__*/Object.fromEntries([['referral-2505', {
|
|
|
161
161
|
}], ['referrer-2505', {
|
|
162
162
|
start: 1652882400,
|
|
163
163
|
end: 1653487199
|
|
164
|
+
}], ['referral-0106', {
|
|
165
|
+
start: 1653487200,
|
|
166
|
+
end: 1654091999
|
|
167
|
+
}], ['referrer-0106', {
|
|
168
|
+
start: 1653487200,
|
|
169
|
+
end: 1654091999
|
|
170
|
+
}], ['referral-0806', {
|
|
171
|
+
start: 1654092000,
|
|
172
|
+
end: 1654696799
|
|
173
|
+
}], ['referrer-0806', {
|
|
174
|
+
start: 1654092000,
|
|
175
|
+
end: 1654696799
|
|
176
|
+
}], ['referral-1506', {
|
|
177
|
+
start: 1654696800,
|
|
178
|
+
end: 1655301599
|
|
179
|
+
}], ['referrer-1506', {
|
|
180
|
+
start: 1654696800,
|
|
181
|
+
end: 1655301599
|
|
164
182
|
}]]);
|
|
165
183
|
|
|
166
184
|
var decimalRecords = {
|
|
@@ -1623,12 +1641,16 @@ var TokenAmount = /*#__PURE__*/function () {
|
|
|
1623
1641
|
|
|
1624
1642
|
var _proto = TokenAmount.prototype;
|
|
1625
1643
|
|
|
1626
|
-
_proto.formattedAmount = function formattedAmount() {
|
|
1644
|
+
_proto.formattedAmount = function formattedAmount(decimal, fmt) {
|
|
1645
|
+
if (decimal && fmt) {
|
|
1646
|
+
return new BigNumber(this.rawAmnt).div(decimalFactor(decimal)).toFormat(decimal, fmt);
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1627
1649
|
return new BigNumber(this.rawAmnt).div(decimalFactor(this.token.decimals)).toString();
|
|
1628
1650
|
};
|
|
1629
1651
|
|
|
1630
|
-
_proto.formattedAmountWithSymbol = function formattedAmountWithSymbol() {
|
|
1631
|
-
return this.formattedAmount() + " " + getSymbol(this.token.address);
|
|
1652
|
+
_proto.formattedAmountWithSymbol = function formattedAmountWithSymbol(decimal, fmt) {
|
|
1653
|
+
return this.formattedAmount(decimal, fmt) + " " + getSymbol(this.token.address);
|
|
1632
1654
|
};
|
|
1633
1655
|
|
|
1634
1656
|
_proto.rawAmount = function rawAmount() {
|
|
@@ -4435,7 +4457,7 @@ var MiscRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
4435
4457
|
balR = new BigNumber(bal.toString()).dividedBy(_1E18.toString());
|
|
4436
4458
|
borR = new BigNumber(bor.toString()).dividedBy(_1E18.toString());
|
|
4437
4459
|
|
|
4438
|
-
if (!(balR.lt(dust)
|
|
4460
|
+
if (!(balR.lt(dust) && borR.lt(dust))) {
|
|
4439
4461
|
_context5.next = 26;
|
|
4440
4462
|
break;
|
|
4441
4463
|
}
|