impermax-sdk 1.0.31 → 1.0.33

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.
@@ -65,7 +65,7 @@ exports.AMM_FACTORY = {
65
65
  [Amms.swapfish]: '0x71539D09D3890195dDa87A6198B98B75211b72F3',
66
66
  [Amms.zyberswap]: '0xac2ee06a14c52570ef3b9812ed240bce359772e7',
67
67
  [Amms.solidlizard]: '0x734d84631f00dc0d3fcd18b04b6cf42bfd407074',
68
- [Amms.ramses]: '0xAAA20D08e59F6561f242b08513D36266C5A29415',
68
+ [Amms.ramses]: '0x78a2251f1aaeaa8fc1eafcc379663cca3f894708', //NOTICE: this is actually the staked LP factory
69
69
  },
70
70
  [types_1.Networks.Avalanche]: {
71
71
  [Amms.pangolin]: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
@@ -105,9 +105,6 @@ class PriceHelper {
105
105
  }
106
106
  getDebankTokenPrice(tokenAddress) {
107
107
  return __awaiter(this, void 0, void 0, function* () {
108
- if (tokenAddress.toLowerCase() === '0xb348b87b23d5977e2948e6f36ca07e1ec94d7328') { // fix for FISH
109
- //return 0.07;
110
- }
111
108
  if (tokenAddress.toLowerCase() === '0xf28164a485b0b2c90639e47b0f377b4a438a16b1') { // fix for dQuick
112
109
  return (yield this.getDebankTokenPrice('0x831753dd7087cac61ab5644b308642cc1c33dc13')) * 1.68;
113
110
  }
@@ -143,6 +140,13 @@ class PriceHelper {
143
140
  this.debankTokenPrice[tokenAddress] = this.initializeDebankTokenPrice(tokenAddress);
144
141
  const tokenPrice = yield this.debankTokenPrice[tokenAddress];
145
142
  if (tokenPrice === 0) {
143
+ //manual fallback
144
+ if (tokenAddress.toLowerCase() === '0xaaa6c1e32c55a7bfa8066a6fae9b42650f262418') { // fix for RAM
145
+ return 0.2;
146
+ }
147
+ if (tokenAddress.toLowerCase() === '0xb348b87b23d5977e2948e6f36ca07e1ec94d7328') { // fix for FISH
148
+ //return 0.07;
149
+ }
146
150
  // try fallback on subgraph
147
151
  const subgraphTokenPrice = yield this.getSubgraphTokenPrice();
148
152
  return subgraphTokenPrice[tokenAddress] ? subgraphTokenPrice[tokenAddress] : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",