@gearbox-protocol/sdk 1.5.6 → 1.5.7
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.
|
@@ -64,7 +64,13 @@ var CurveAdapterParser = /** @class */ (function (_super) {
|
|
|
64
64
|
case "exchange_all":
|
|
65
65
|
case "exchange_all_underlying": {
|
|
66
66
|
var _c = this.decodeFunctionData(functionFragment, calldata), i = _c[0], j = _c[1], rateMinRAY = _c[2];
|
|
67
|
-
|
|
67
|
+
var iSym = functionFragment.name === "exchange_all_underlying"
|
|
68
|
+
? this.getUnderlyingTokenByIndex(i)
|
|
69
|
+
: this.getTokenByIndex(i);
|
|
70
|
+
var jSym = functionFragment.name === "exchange_all_underlying"
|
|
71
|
+
? this.getUnderlyingTokenByIndex(j)
|
|
72
|
+
: this.getTokenByIndex(j);
|
|
73
|
+
return "".concat(functionName, "(i: ").concat(iSym, ", j: ").concat(jSym, ", rateMinRAY: ").concat((0, formatter_1.formatBN)(rateMinRAY, 27));
|
|
68
74
|
}
|
|
69
75
|
case "add_liquidity_one_coin": {
|
|
70
76
|
var _d = this.decodeFunctionData(functionFragment, calldata), amount = _d[0], i = _d[1], minAmount = _d[2];
|