@curvefi/api 2.70.2 → 2.70.3

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.
@@ -1760,13 +1760,13 @@ export class PoolTemplate extends CorePool {
1760
1760
  const contractAddress = this.isCrypto && this.isMeta ? this.zap : this.address;
1761
1761
  const contract = this.curve.contracts[contractAddress].contract;
1762
1762
  if ('get_dy_underlying' in contract) {
1763
- return yield contract.get_dy_underlying(i, j, _amount, this.curve.constantOptions);
1763
+ return yield contract.get_dy_underlying(i, j, _amount);
1764
1764
  }
1765
1765
  else {
1766
1766
  if ('get_dy(address,uint256,uint256,uint256)' in contract) { // atricrypto3 based metapools
1767
- return yield contract.get_dy(this.address, i, j, _amount, this.curve.constantOptions);
1767
+ return yield contract.get_dy(this.address, i, j, _amount);
1768
1768
  }
1769
- return yield contract.get_dy(i, j, _amount, this.curve.constantOptions);
1769
+ return yield contract.get_dy(i, j, _amount);
1770
1770
  }
1771
1771
  });
1772
1772
  }
@@ -1793,21 +1793,21 @@ export class PoolTemplate extends CorePool {
1793
1793
  return __awaiter(this, void 0, void 0, function* () {
1794
1794
  if (this.isCrypto) {
1795
1795
  if (this.isNg)
1796
- return yield this.curve.contracts[this.address].contract.get_dx(i, j, _amount, this.curve.constantOptions);
1796
+ return yield this.curve.contracts[this.address].contract.get_dx(i, j, _amount);
1797
1797
  const contract = this.curve.contracts[this.curve.constants.ALIASES.crypto_calc].contract;
1798
1798
  if (this.isMeta && isUnderlying) {
1799
1799
  const basePool = new PoolTemplate(this.basePool, this.curve);
1800
1800
  if (this.wrappedCoins.length === 3) {
1801
- return yield contract.get_dx_tricrypto_meta_underlying(this.address, i, j, _amount, this.wrappedCoins.length, basePool.address, basePool.lpToken, this.curve.constantOptions);
1801
+ return yield contract.get_dx_tricrypto_meta_underlying(this.address, i, j, _amount, this.wrappedCoins.length, basePool.address, basePool.lpToken);
1802
1802
  }
1803
1803
  if (basePool.isFake) {
1804
1804
  const secondPool = new PoolTemplate(basePool.basePool, this.curve);
1805
- return yield contract.get_dx_double_meta_underlying(this.address, i, j, _amount, basePool.address, basePool.zap, secondPool.address, secondPool.lpToken, this.curve.constantOptions);
1805
+ return yield contract.get_dx_double_meta_underlying(this.address, i, j, _amount, basePool.address, basePool.zap, secondPool.address, secondPool.lpToken);
1806
1806
  }
1807
- return yield contract.get_dx_meta_underlying(this.address, i, j, _amount, this.underlyingCoins.length, basePool.address, basePool.lpToken, this.curve.constantOptions);
1807
+ return yield contract.get_dx_meta_underlying(this.address, i, j, _amount, this.underlyingCoins.length, basePool.address, basePool.lpToken);
1808
1808
  }
1809
1809
  else {
1810
- return yield contract.get_dx(this.address, i, j, _amount, this.wrappedCoins.length, this.curve.constantOptions);
1810
+ return yield contract.get_dx(this.address, i, j, _amount, this.wrappedCoins.length);
1811
1811
  }
1812
1812
  }
1813
1813
  else {
@@ -1815,32 +1815,32 @@ export class PoolTemplate extends CorePool {
1815
1815
  const contract = this.curve.contracts[this.address].contract;
1816
1816
  if (this.isMeta) {
1817
1817
  if (isUnderlying) {
1818
- return yield contract.get_dx_underlying(i, j, _amount, this.curve.constantOptions);
1818
+ return yield contract.get_dx_underlying(i, j, _amount);
1819
1819
  }
1820
1820
  else {
1821
- return yield contract.get_dx(i, j, _amount, this.curve.constantOptions);
1821
+ return yield contract.get_dx(i, j, _amount);
1822
1822
  }
1823
1823
  }
1824
1824
  else {
1825
- return yield contract.get_dx(i, j, _amount, this.curve.constantOptions);
1825
+ return yield contract.get_dx(i, j, _amount);
1826
1826
  }
1827
1827
  }
1828
1828
  const contract = this.curve.contracts[this.curve.constants.ALIASES.stable_calc].contract;
1829
1829
  if (this.isMeta) {
1830
1830
  const basePool = new PoolTemplate(this.basePool, this.curve);
1831
1831
  if (isUnderlying) {
1832
- return yield contract.get_dx_meta_underlying(this.address, i, j, _amount, this.underlyingCoins.length, basePool.address, basePool.lpToken, this.curve.constantOptions);
1832
+ return yield contract.get_dx_meta_underlying(this.address, i, j, _amount, this.underlyingCoins.length, basePool.address, basePool.lpToken);
1833
1833
  }
1834
1834
  else {
1835
- return yield contract.get_dx_meta(this.address, i, j, _amount, this.wrappedCoins.length, basePool.address, this.curve.constantOptions);
1835
+ return yield contract.get_dx_meta(this.address, i, j, _amount, this.wrappedCoins.length, basePool.address);
1836
1836
  }
1837
1837
  }
1838
1838
  else {
1839
1839
  if (isUnderlying && this.isLending) {
1840
- return yield contract.get_dx_underlying(this.address, i, j, _amount, this.underlyingCoins.length, this.curve.constantOptions);
1840
+ return yield contract.get_dx_underlying(this.address, i, j, _amount, this.underlyingCoins.length);
1841
1841
  }
1842
1842
  else {
1843
- return yield contract.get_dx(this.address, i, j, _amount, this.wrappedCoins.length, this.curve.constantOptions);
1843
+ return yield contract.get_dx(this.address, i, j, _amount, this.wrappedCoins.length);
1844
1844
  }
1845
1845
  }
1846
1846
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.70.2",
3
+ "version": "2.70.3",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",