@aurigami/sdk 1.5.0-dummy-2 → 1.5.1

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/sdk.esm.js CHANGED
@@ -994,7 +994,7 @@ var networkAddresses = {
994
994
  TRI: /*#__PURE__*/'0xFa94348467f64D5A457F75F8bc40495D33c65aBB'.toLowerCase(),
995
995
  META: /*#__PURE__*/'0xc21ff01229e982d7c8b8691163b0a3cb8f357453'.toLocaleLowerCase(),
996
996
  PULP: /*#__PURE__*/'0x04Ac48711BCdc45b4d223fb021E09DA73c71095e'.toLowerCase(),
997
- PLYUSDC: /*#__PURE__*/'0x37cae2b29c18e05ece60111fa01d3ca217046016'.toLowerCase()
997
+ PLYWNEAR: /*#__PURE__*/'0x044b6B0CD3Bb13D2b9057781Df4459C66781dCe7'.toLowerCase()
998
998
  }
999
999
  };
1000
1000
  var PRICE_WHITELISTED = /*#__PURE__*/new Set( /*#__PURE__*/[].concat( /*#__PURE__*/networkAddresses.auTokens.map(function (t) {
@@ -1005,8 +1005,8 @@ var BORROW_LIMIT_BUFFER = /*#__PURE__*/new BigNumber(1);
1005
1005
  var ONE_DAY = 86400;
1006
1006
  var ONE_WEEK = ONE_DAY * 7;
1007
1007
  var ONE_YEAR = ONE_DAY * 365;
1008
- var PlyUsdcPid = 0;
1009
- var PLYUSDCRewardTokens = ['0x09C9D464b58d96837f8d8b6f4d9fE4aD408d3A4f', '0xC42C30aC6Cc15faC9bD938618BcaA1a1FaE8501d', '0x8BEc47865aDe3B172A928df8f990Bc7f2A3b9f79', '0xFa94348467f64D5A457F75F8bc40495D33c65aBB'];
1008
+ var PLYWNEAR_POOL_ID = 0;
1009
+ var PLYWNEAR_REWARD_TOKENS = ['0x09C9D464b58d96837f8d8b6f4d9fE4aD408d3A4f', '0xC42C30aC6Cc15faC9bD938618BcaA1a1FaE8501d', '0x8BEc47865aDe3B172A928df8f990Bc7f2A3b9f79', '0xFa94348467f64D5A457F75F8bc40495D33c65aBB'];
1010
1010
  var ALL_STAKING_POOLS = [];
1011
1011
  var INF = /*#__PURE__*/BigNumber$1.from(2).pow(256).sub(1);
1012
1012
  var AIRDROP_START_TIMESTAMP = 1649858400;
@@ -1088,7 +1088,7 @@ var decimalRecords = {
1088
1088
  '0xf4eb217ba2454613b15dbdea6e5f22276410e89e': 8,
1089
1089
  '0xc21ff01229e982d7c8b8691163b0a3cb8f357453': 24,
1090
1090
  '0x04ac48711bcdc45b4d223fb021e09da73c71095e': 18,
1091
- '0x37cae2b29c18e05ece60111fa01d3ca217046016': 18
1091
+ '0x044b6b0cd3bb13d2b9057781df4459c66781dce7': 18
1092
1092
  };
1093
1093
 
1094
1094
  function formatObject(object) {
@@ -1200,7 +1200,7 @@ var Token = function Token(address, decimals) {
1200
1200
  this.decimals = decimals;
1201
1201
  };
1202
1202
  var PLYToken = /*#__PURE__*/new Token(networkAddresses.tokens.PLY, /*#__PURE__*/getDecimal(networkAddresses.tokens.PLY));
1203
- var PLYUSDCToken = /*#__PURE__*/new Token(networkAddresses.tokens.PLYUSDC, /*#__PURE__*/getDecimal(networkAddresses.tokens.PLYUSDC));
1203
+ var PLYWNEARToken = /*#__PURE__*/new Token(networkAddresses.tokens.PLYWNEAR, /*#__PURE__*/getDecimal(networkAddresses.tokens.PLYWNEAR));
1204
1204
 
1205
1205
  var TokenAmount = /*#__PURE__*/function () {
1206
1206
  function TokenAmount(token, amount, isRaw) {
@@ -2556,7 +2556,7 @@ function _fetchPrice3() {
2556
2556
  while (1) {
2557
2557
  switch (_context10.prev = _context10.next) {
2558
2558
  case 0:
2559
- if (!isSameAddress(address, networkAddresses.tokens.PLYUSDC)) {
2559
+ if (!isSameAddress(address, networkAddresses.tokens.PLYWNEAR)) {
2560
2560
  _context10.next = 4;
2561
2561
  break;
2562
2562
  }
@@ -2590,38 +2590,37 @@ function fetchPLYPrice(_x15) {
2590
2590
 
2591
2591
  function _fetchPLYPrice() {
2592
2592
  _fetchPLYPrice = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(provider) {
2593
- var LPInfo, plyAddress, plyDecimal, usdcAddress, usdcDecimal;
2593
+ var LPInfo, plyAddress, plyDecimal, wnearAddress, wnearDecimal;
2594
2594
  return runtime_1.wrap(function _callee11$(_context11) {
2595
2595
  while (1) {
2596
2596
  switch (_context11.prev = _context11.next) {
2597
2597
  case 0:
2598
- _context11.next = 2;
2599
- return fetchLPPositions(networkAddresses.tokens.PLYUSDC, provider);
2598
+ return _context11.abrupt("return", new BigNumber(0));
2600
2599
 
2601
- case 2:
2600
+ case 3:
2602
2601
  LPInfo = _context11.sent;
2603
2602
 
2604
2603
  if (!LPInfo.reserve1.isZero()) {
2605
- _context11.next = 5;
2604
+ _context11.next = 6;
2606
2605
  break;
2607
2606
  }
2608
2607
 
2609
2608
  return _context11.abrupt("return", new BigNumber(0));
2610
2609
 
2611
- case 5:
2610
+ case 6:
2612
2611
  plyAddress = LPInfo.token0;
2613
2612
  assert(isSameAddress(plyAddress, networkAddresses.tokens.PLY));
2614
2613
  plyDecimal = getDecimal(plyAddress);
2615
- usdcAddress = LPInfo.token1;
2616
- assert(isSameAddress(usdcAddress, networkAddresses.tokens.USDC));
2617
- usdcDecimal = getDecimal(usdcAddress);
2618
- _context11.next = 13;
2619
- return fetchPrice(usdcAddress, provider);
2620
-
2621
- case 13:
2622
- return _context11.abrupt("return", _context11.sent.multipliedBy(LPInfo.reserve1.toString()).multipliedBy(decimalFactor(plyDecimal)).dividedBy(decimalFactor(usdcDecimal)).dividedBy(LPInfo.reserve0.toString()));
2614
+ wnearAddress = LPInfo.token1;
2615
+ assert(isSameAddress(wnearAddress, networkAddresses.tokens.WNEAR));
2616
+ wnearDecimal = getDecimal(wnearAddress);
2617
+ _context11.next = 14;
2618
+ return fetchPrice(wnearAddress, provider);
2623
2619
 
2624
2620
  case 14:
2621
+ return _context11.abrupt("return", _context11.sent.multipliedBy(LPInfo.reserve1.toString()).multipliedBy(decimalFactor(plyDecimal)).dividedBy(decimalFactor(wnearDecimal)).dividedBy(LPInfo.reserve0.toString()));
2622
+
2623
+ case 15:
2625
2624
  case "end":
2626
2625
  return _context11.stop();
2627
2626
  }
@@ -3385,6 +3384,7 @@ var MoneyMarket = /*#__PURE__*/function (_BlockchainEntity) {
3385
3384
  return MoneyMarket;
3386
3385
  }(BlockchainEntity);
3387
3386
 
3387
+ var LOCKING_DENOMINATOR = /*#__PURE__*/BigNumber$1.from(10000);
3388
3388
  var PapermillRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3389
3389
  _inheritsLoose(PapermillRead, _BlockchainEntityRead);
3390
3390
 
@@ -3495,40 +3495,42 @@ var PapermillRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3495
3495
  return getUnclaimedPlyReward;
3496
3496
  }();
3497
3497
 
3498
+ _proto.getWeek = function getWeek(timestamp) {
3499
+ return BigNumber$1.from(timestamp - REWARD_CLAIM_START).div(ONE_WEEK).toNumber();
3500
+ };
3501
+
3498
3502
  _proto.getLockingDetails = /*#__PURE__*/function () {
3499
3503
  var _getLockingDetails = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(userAddress) {
3500
- var currentTime, currentWeek, denominator, promises, values, percentLockCurrentWeek, percentLockNextWeek, totalRewards, _yield$this$_pulp$cal, pulpAmountCurrentWeek, plyAmountCurrentWeek, plyAmountNextWeek, pulpAmountNextWeek, currentUnlockPortion, nextUnlockPortion;
3504
+ var currentWeek, promises, values, percentLockCurrentWeek, percentLockNextWeek, totalRewards, _yield$this$_pulp$cal, pulpAmountCurrentWeek, plyAmountCurrentWeek, plyAmountNextWeek, pulpAmountNextWeek, currentUnlockPortion, nextUnlockPortion;
3501
3505
 
3502
3506
  return runtime_1.wrap(function _callee4$(_context4) {
3503
3507
  while (1) {
3504
3508
  switch (_context4.prev = _context4.next) {
3505
3509
  case 0:
3506
- currentTime = getCurrentTimestamp();
3507
- currentWeek = BigNumber$1.from(currentTime - REWARD_CLAIM_START).div(ONE_WEEK).toNumber();
3508
- denominator = BigNumber$1.from(10000);
3510
+ currentWeek = this.getWeek(getCurrentTimestamp());
3509
3511
  promises = [];
3510
3512
  promises.push(this._auriLens.getPercentLock(this._pulp.address, userAddress, currentWeek));
3511
3513
  promises.push(this._auriLens.getPercentLock(this._pulp.address, userAddress, currentWeek + 1));
3512
3514
  promises.push(this.getUnclaimedPlyReward(userAddress));
3513
- _context4.next = 9;
3515
+ _context4.next = 7;
3514
3516
  return Promise.all(promises);
3515
3517
 
3516
- case 9:
3518
+ case 7:
3517
3519
  values = _context4.sent;
3518
3520
  percentLockCurrentWeek = BigNumber$1.from(values[0]);
3519
3521
  percentLockNextWeek = BigNumber$1.from(values[1]);
3520
3522
  totalRewards = values[2];
3521
- _context4.next = 15;
3523
+ _context4.next = 13;
3522
3524
  return this._pulp.calcLockAmount(userAddress, totalRewards.rawAmount());
3523
3525
 
3524
- case 15:
3526
+ case 13:
3525
3527
  _yield$this$_pulp$cal = _context4.sent;
3526
3528
  pulpAmountCurrentWeek = _yield$this$_pulp$cal[0];
3527
3529
  plyAmountCurrentWeek = _yield$this$_pulp$cal[1];
3528
- plyAmountNextWeek = percentLockNextWeek.mul(totalRewards.rawAmount()).div(denominator);
3530
+ plyAmountNextWeek = percentLockNextWeek.mul(totalRewards.rawAmount()).div(LOCKING_DENOMINATOR);
3529
3531
  pulpAmountNextWeek = BigNumber$1.from(totalRewards.rawAmount()).sub(plyAmountNextWeek);
3530
- currentUnlockPortion = denominator.sub(percentLockCurrentWeek).toString();
3531
- nextUnlockPortion = denominator.sub(percentLockNextWeek).toString();
3532
+ currentUnlockPortion = LOCKING_DENOMINATOR.sub(percentLockCurrentWeek).toString();
3533
+ nextUnlockPortion = LOCKING_DENOMINATOR.sub(percentLockNextWeek).toString();
3532
3534
  return _context4.abrupt("return", {
3533
3535
  vestingStart: REWARD_CLAIM_START,
3534
3536
  currentUnlockPortion: new BigNumber(currentUnlockPortion).dividedBy(100).toNumber(),
@@ -3540,7 +3542,7 @@ var PapermillRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3540
3542
  nextPulp: new TokenAmount(this.pulpToken, pulpAmountNextWeek.toString())
3541
3543
  });
3542
3544
 
3543
- case 23:
3545
+ case 21:
3544
3546
  case "end":
3545
3547
  return _context4.stop();
3546
3548
  }
@@ -3584,6 +3586,36 @@ var PapermillRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3584
3586
  return getTimestampToUnlock;
3585
3587
  }();
3586
3588
 
3589
+ _proto.getUnlockPortionAt = /*#__PURE__*/function () {
3590
+ var _getUnlockPortionAt = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(userAddress, timestamp) {
3591
+ var lockPortion, unlockPortion;
3592
+ return runtime_1.wrap(function _callee6$(_context6) {
3593
+ while (1) {
3594
+ switch (_context6.prev = _context6.next) {
3595
+ case 0:
3596
+ _context6.next = 2;
3597
+ return this._auriLens.getPercentLock(this._pulp.address, userAddress, this.getWeek(timestamp));
3598
+
3599
+ case 2:
3600
+ lockPortion = _context6.sent;
3601
+ unlockPortion = LOCKING_DENOMINATOR.sub(lockPortion);
3602
+ return _context6.abrupt("return", unlockPortion.toNumber() / 100);
3603
+
3604
+ case 5:
3605
+ case "end":
3606
+ return _context6.stop();
3607
+ }
3608
+ }
3609
+ }, _callee6, this);
3610
+ }));
3611
+
3612
+ function getUnlockPortionAt(_x7, _x8) {
3613
+ return _getUnlockPortionAt.apply(this, arguments);
3614
+ }
3615
+
3616
+ return getUnlockPortionAt;
3617
+ }();
3618
+
3587
3619
  return PapermillRead;
3588
3620
  }(BlockchainEntityRead);
3589
3621
  var PapermillReadWrite = /*#__PURE__*/function (_PapermillRead) {
@@ -3596,22 +3628,22 @@ var PapermillReadWrite = /*#__PURE__*/function (_PapermillRead) {
3596
3628
  var _proto2 = PapermillReadWrite.prototype;
3597
3629
 
3598
3630
  _proto2.redeem = /*#__PURE__*/function () {
3599
- var _redeem = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(recipient, amount) {
3600
- return runtime_1.wrap(function _callee6$(_context6) {
3631
+ var _redeem = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(recipient, amount) {
3632
+ return runtime_1.wrap(function _callee7$(_context7) {
3601
3633
  while (1) {
3602
- switch (_context6.prev = _context6.next) {
3634
+ switch (_context7.prev = _context7.next) {
3603
3635
  case 0:
3604
- return _context6.abrupt("return", this._pulp.connect(this._networkConnection.signer).redeem(recipient, amount.rawAmount()));
3636
+ return _context7.abrupt("return", this._pulp.connect(this._networkConnection.signer).redeem(recipient, amount.rawAmount()));
3605
3637
 
3606
3638
  case 1:
3607
3639
  case "end":
3608
- return _context6.stop();
3640
+ return _context7.stop();
3609
3641
  }
3610
3642
  }
3611
- }, _callee6, this);
3643
+ }, _callee7, this);
3612
3644
  }));
3613
3645
 
3614
- function redeem(_x7, _x8) {
3646
+ function redeem(_x9, _x10) {
3615
3647
  return _redeem.apply(this, arguments);
3616
3648
  }
3617
3649
 
@@ -3619,28 +3651,28 @@ var PapermillReadWrite = /*#__PURE__*/function (_PapermillRead) {
3619
3651
  }();
3620
3652
 
3621
3653
  _proto2.selfRedeem = /*#__PURE__*/function () {
3622
- var _selfRedeem = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(amount) {
3654
+ var _selfRedeem = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(amount) {
3623
3655
  var msgSender;
3624
- return runtime_1.wrap(function _callee7$(_context7) {
3656
+ return runtime_1.wrap(function _callee8$(_context8) {
3625
3657
  while (1) {
3626
- switch (_context7.prev = _context7.next) {
3658
+ switch (_context8.prev = _context8.next) {
3627
3659
  case 0:
3628
- _context7.next = 2;
3660
+ _context8.next = 2;
3629
3661
  return this._networkConnection.signer.getAddress();
3630
3662
 
3631
3663
  case 2:
3632
- msgSender = _context7.sent;
3633
- return _context7.abrupt("return", this.redeem(msgSender, amount));
3664
+ msgSender = _context8.sent;
3665
+ return _context8.abrupt("return", this.redeem(msgSender, amount));
3634
3666
 
3635
3667
  case 4:
3636
3668
  case "end":
3637
- return _context7.stop();
3669
+ return _context8.stop();
3638
3670
  }
3639
3671
  }
3640
- }, _callee7, this);
3672
+ }, _callee8, this);
3641
3673
  }));
3642
3674
 
3643
- function selfRedeem(_x9) {
3675
+ function selfRedeem(_x11) {
3644
3676
  return _selfRedeem.apply(this, arguments);
3645
3677
  }
3646
3678
 
@@ -3825,43 +3857,50 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3825
3857
  return getUserDetails;
3826
3858
  }();
3827
3859
 
3828
- _proto.getPlyUsdcPoolDetails = /*#__PURE__*/function () {
3829
- var _getPlyUsdcPoolDetails = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
3830
- var stakedLiquidity, rewardPerSeconds, stakedLiquidityAmount, promises, _i, rewardTokenAddress, rewardToken, rewardPerSecond, rewardPerSecondValuation, totalStakeValuation;
3860
+ _proto.getPLYWNEARPoolDetails = /*#__PURE__*/function () {
3861
+ var _getPLYWNEARPoolDetails = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
3862
+ var stakedLiquidity, rewardPerSeconds, stakedLiquidityAmount, totalStakeValuation, promises, _i, rewardTokenAddress, rewardToken, rewardPerSecond, APYs;
3831
3863
 
3832
3864
  return runtime_1.wrap(function _callee2$(_context2) {
3833
3865
  while (1) {
3834
3866
  switch (_context2.prev = _context2.next) {
3835
3867
  case 0:
3836
3868
  _context2.next = 2;
3837
- return this._auriFairLaunch.getPoolInfo(PlyUsdcPid).then(function (res) {
3869
+ return this._auriFairLaunch.getPoolInfo(PLYWNEAR_POOL_ID).then(function (res) {
3838
3870
  stakedLiquidity = res.totalStake;
3839
3871
  rewardPerSeconds = res.rewardPerSeconds;
3840
3872
  });
3841
3873
 
3842
3874
  case 2:
3843
- stakedLiquidityAmount = new TokenAmount(PLYUSDCToken, stakedLiquidity.toString());
3875
+ stakedLiquidityAmount = new TokenAmount(PLYWNEARToken, stakedLiquidity.toString());
3876
+ _context2.next = 5;
3877
+ return fetchValuation(stakedLiquidityAmount, this._networkConnection.provider);
3878
+
3879
+ case 5:
3880
+ totalStakeValuation = _context2.sent;
3844
3881
  promises = [];
3845
3882
 
3846
3883
  for (_i = 0; _i < rewardPerSeconds.length; _i++) {
3847
- rewardTokenAddress = PLYUSDCRewardTokens[_i];
3884
+ rewardTokenAddress = PLYWNEAR_REWARD_TOKENS[_i];
3848
3885
  rewardToken = new Token(rewardTokenAddress, getDecimal(rewardTokenAddress));
3849
3886
  rewardPerSecond = rewardPerSeconds[_i];
3850
3887
  promises.push(fetchValuation(new TokenAmount(rewardToken, rewardPerSecond.toString()), this._networkConnection.provider));
3851
3888
  }
3852
3889
 
3853
- _context2.next = 7;
3890
+ APYs = [];
3891
+ _context2.next = 11;
3854
3892
  return Promise.all(promises);
3855
3893
 
3856
- case 7:
3857
- rewardPerSecondValuation = _context2.sent.reduce(function (p, v) {
3858
- return p.plus(v);
3859
- }, new BigNumber(0));
3860
- _context2.next = 10;
3861
- return fetchValuation(stakedLiquidityAmount, this._networkConnection.provider);
3894
+ case 11:
3895
+ _context2.sent.forEach(function (rewardPerSecondValuation, i) {
3896
+ var rewardTokenAddress = PLYWNEAR_REWARD_TOKENS[i];
3897
+ var apy = calcLMRewardApr(rewardPerSecondValuation, totalStakeValuation, ONE_DAY * 365).toFixed(DECIMAL_PRECISION);
3898
+ APYs.push({
3899
+ address: rewardTokenAddress,
3900
+ apy: apy
3901
+ });
3902
+ });
3862
3903
 
3863
- case 10:
3864
- totalStakeValuation = _context2.sent;
3865
3904
  return _context2.abrupt("return", {
3866
3905
  totalStakedLiquidity: {
3867
3906
  tokenAmount: stakedLiquidityAmount,
@@ -3870,10 +3909,10 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3870
3909
  amount: totalStakeValuation.toFixed(DECIMAL_PRECISION)
3871
3910
  }
3872
3911
  },
3873
- apy: calcLMRewardApr(rewardPerSecondValuation, totalStakeValuation, ONE_DAY * 365).toFixed(DECIMAL_PRECISION)
3912
+ APYs: APYs
3874
3913
  });
3875
3914
 
3876
- case 12:
3915
+ case 13:
3877
3916
  case "end":
3878
3917
  return _context2.stop();
3879
3918
  }
@@ -3881,11 +3920,11 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3881
3920
  }, _callee2, this);
3882
3921
  }));
3883
3922
 
3884
- function getPlyUsdcPoolDetails() {
3885
- return _getPlyUsdcPoolDetails.apply(this, arguments);
3923
+ function getPLYWNEARPoolDetails() {
3924
+ return _getPLYWNEARPoolDetails.apply(this, arguments);
3886
3925
  }
3887
3926
 
3888
- return getPlyUsdcPoolDetails;
3927
+ return getPLYWNEARPoolDetails;
3889
3928
  }();
3890
3929
 
3891
3930
  _proto.getTokenPrice = /*#__PURE__*/function () {
@@ -3928,11 +3967,11 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3928
3967
  switch (_context4.prev = _context4.next) {
3929
3968
  case 0:
3930
3969
  _context4.next = 2;
3931
- return this._auriFairLaunch.getUserInfo(PlyUsdcPid, user);
3970
+ return this._auriFairLaunch.getUserInfo(PLYWNEAR_POOL_ID, user);
3932
3971
 
3933
3972
  case 2:
3934
3973
  userInfo = _context4.sent;
3935
- stakeAmount = new TokenAmount(PLYUSDCToken, userInfo.amount.toString());
3974
+ stakeAmount = new TokenAmount(PLYWNEARToken, userInfo.amount.toString());
3936
3975
  return _context4.abrupt("return", valuateToken(stakeAmount, this._networkConnection.provider));
3937
3976
 
3938
3977
  case 5:
@@ -3952,18 +3991,18 @@ var SdkRead = /*#__PURE__*/function (_BlockchainEntityRead) {
3952
3991
 
3953
3992
  _proto.LpBalanceOf = /*#__PURE__*/function () {
3954
3993
  var _LpBalanceOf = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(user) {
3955
- var lpERC20, balance;
3994
+ var lpContract, balance;
3956
3995
  return runtime_1.wrap(function _callee5$(_context5) {
3957
3996
  while (1) {
3958
3997
  switch (_context5.prev = _context5.next) {
3959
3998
  case 0:
3960
- lpERC20 = new Contract(networkAddresses.tokens.PLYUSDC, EIP20InterfaceABI.abi, this._networkConnection.provider);
3999
+ lpContract = new Contract(networkAddresses.tokens.PLYWNEAR, EIP20InterfaceABI.abi, this._networkConnection.provider);
3961
4000
  _context5.next = 3;
3962
- return lpERC20.balanceOf(user);
4001
+ return lpContract.balanceOf(user);
3963
4002
 
3964
4003
  case 3:
3965
4004
  balance = _context5.sent;
3966
- return _context5.abrupt("return", valuateToken(new TokenAmount(PLYUSDCToken, balance.toString()), this._networkConnection.provider));
4005
+ return _context5.abrupt("return", valuateToken(new TokenAmount(PLYWNEARToken, balance.toString()), this._networkConnection.provider));
3967
4006
 
3968
4007
  case 5:
3969
4008
  case "end":
@@ -4058,7 +4097,7 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4058
4097
  while (1) {
4059
4098
  switch (_context7.prev = _context7.next) {
4060
4099
  case 0:
4061
- return _context7.abrupt("return", this._auriFairLaunch.connect(this._networkConnection.signer).deposit(PlyUsdcPid, amount.rawAmount()));
4100
+ return _context7.abrupt("return", this._auriFairLaunch.connect(this._networkConnection.signer).deposit(PLYWNEAR_POOL_ID, amount.rawAmount()));
4062
4101
 
4063
4102
  case 1:
4064
4103
  case "end":
@@ -4081,7 +4120,7 @@ var SdkReadWrite = /*#__PURE__*/function (_SdkRead) {
4081
4120
  while (1) {
4082
4121
  switch (_context8.prev = _context8.next) {
4083
4122
  case 0:
4084
- return _context8.abrupt("return", this._auriFairLaunch.connect(this._networkConnection.signer).withdraw(PlyUsdcPid, amount.rawAmount()));
4123
+ return _context8.abrupt("return", this._auriFairLaunch.connect(this._networkConnection.signer).withdraw(PLYWNEAR_POOL_ID, amount.rawAmount()));
4085
4124
 
4086
4125
  case 1:
4087
4126
  case "end":
@@ -107349,5 +107388,5 @@ BigNumber.config({
107349
107388
  DECIMAL_PLACES: 50
107350
107389
  });
107351
107390
 
107352
- export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, Airdrop, AirdropRead, AirdropReadWrite, BORROW_LIMIT_BUFFER, BORROW_NEAR_REWARDS_PER_WEEK, BlockchainEntity, BlockchainEntityRead, BlockchainEntityReadWrite, ComptrollerRewardType, DECIMAL_PRECISION, DEPOSIT_NEAR_REWARDS_PER_WEEK, ETHAddress, INF, MarketAction, MoneyMarket, MoneyMarketRead, MoneyMarketReadWrite, ONE_DAY, ONE_WEEK, ONE_YEAR, PLYToken, PLYUSDCRewardTokens, PLYUSDCToken, PRICE_WHITELISTED, Papermill, PapermillRead, PapermillReadWrite, PlyUsdcPid, REWARD_CLAIM_START, SDK, SdkRead, SdkReadWrite, Token, TokenAmount, TransferEventQuery, calcLMRewardApr, calcValuation, decimalFactor, dummyAddress, dummyMarketAddress, dummyPly, dummyPlyAurora, dummyToken, dummyTokenAmount, dummyTokenAmount2, dummyTokenAmount3, dummyUserMarketDetails, dummyZeroTokenAmount, fetchLPPositions, fetchLPPrice, fetchPLYPrice, fetchPrice, fetchPriceFromCoingecko, fetchPriceFromCoingeckoAPI, fetchPriceFromOracle, fetchStNEARPrice, fetchUnderlyingTokensPrices, fetchValuation, formatObject, getBlockBeforeTimestamp, getBlockTimestamp, getCurrentTimestamp, getDecimal, isSameAddress, networkAddresses, validateAndParseAddress, valuateToken };
107391
+ export { AIRDROP_END_TIMESTAMP, AIRDROP_KEEP_THRESHOLD, AIRDROP_START_TIMESTAMP, ALL_STAKING_POOLS, AURORA_CHAINID, Airdrop, AirdropRead, AirdropReadWrite, BORROW_LIMIT_BUFFER, BORROW_NEAR_REWARDS_PER_WEEK, BlockchainEntity, BlockchainEntityRead, BlockchainEntityReadWrite, ComptrollerRewardType, DECIMAL_PRECISION, DEPOSIT_NEAR_REWARDS_PER_WEEK, ETHAddress, INF, MarketAction, MoneyMarket, MoneyMarketRead, MoneyMarketReadWrite, ONE_DAY, ONE_WEEK, ONE_YEAR, PLYToken, PLYWNEARToken, PLYWNEAR_POOL_ID, PLYWNEAR_REWARD_TOKENS, PRICE_WHITELISTED, Papermill, PapermillRead, PapermillReadWrite, REWARD_CLAIM_START, SDK, SdkRead, SdkReadWrite, Token, TokenAmount, TransferEventQuery, calcLMRewardApr, calcValuation, decimalFactor, dummyAddress, dummyMarketAddress, dummyPly, dummyPlyAurora, dummyToken, dummyTokenAmount, dummyTokenAmount2, dummyTokenAmount3, dummyUserMarketDetails, dummyZeroTokenAmount, fetchLPPositions, fetchLPPrice, fetchPLYPrice, fetchPrice, fetchPriceFromCoingecko, fetchPriceFromCoingeckoAPI, fetchPriceFromOracle, fetchStNEARPrice, fetchUnderlyingTokensPrices, fetchValuation, formatObject, getBlockBeforeTimestamp, getBlockTimestamp, getCurrentTimestamp, getDecimal, isSameAddress, networkAddresses, validateAndParseAddress, valuateToken };
107353
107392
  //# sourceMappingURL=sdk.esm.js.map