@defisaver/sdk 0.3.7 → 0.3.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,11 +48,7 @@ class AaveV3PaybackAction extends ActionWithL2 {
48
48
 
49
49
  async getAssetsToApprove() {
50
50
  const asset = getAssetInfoByAddress(this.tokenForApproval);
51
- if (CONFIG.chainId === 10) {
52
- if (asset.symbol !== 'ETH') return [{asset: this.tokenForApproval, owner: this.args[1]}];
53
- } else {
54
- if (asset.symbol !== 'ETH') return [{asset: this.tokenForApproval, owner: this.args[3]}];
55
- }
51
+ if (asset.symbol !== 'ETH') return [{asset: this.tokenForApproval, owner: this.args[1]}];
56
52
  return [];
57
53
  }
58
54
 
@@ -49,11 +49,7 @@ class AaveV3SupplyAction extends ActionWithL2 {
49
49
 
50
50
  async getAssetsToApprove() {
51
51
  const asset = getAssetInfoByAddress(this.tokenForApproval);
52
- if (CONFIG.chainId === 10) {
53
- if (asset.symbol !== 'ETH') return [{asset: this.tokenForApproval, owner: this.args[1]}];
54
- } else {
55
- if (asset.symbol !== 'ETH') return [{asset: this.tokenForApproval, owner: this.args[2]}];
56
- }
52
+ if (asset.symbol !== 'ETH') return [{asset: this.tokenForApproval, owner: this.args[1]}];
57
53
  return [];
58
54
  }
59
55