@defisaver/sdk 1.0.12 → 1.0.13
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/esm/src/actions/morpho/MorphoAaveV2BorrowAction.d.ts +1 -1
- package/esm/src/actions/morpho/MorphoAaveV2BorrowAction.js +1 -1
- package/esm/src/actions/morpho/MorphoAaveV2SupplyAction.d.ts +1 -1
- package/esm/src/actions/morpho/MorphoAaveV2SupplyAction.js +1 -1
- package/package.json +1 -1
- package/src/actions/morpho/MorphoAaveV2BorrowAction.ts +1 -1
- package/src/actions/morpho/MorphoAaveV2SupplyAction.ts +1 -1
- package/umd/index.js +3 -2
|
@@ -12,5 +12,5 @@ export declare class MorphoAaveV2BorrowAction extends Action {
|
|
|
12
12
|
* @param to - Borrowed tokens will be sent to this address
|
|
13
13
|
* @param maxGasForMatching - Max gas to spend on p2p matching
|
|
14
14
|
*/
|
|
15
|
-
constructor(tokenAddr: EthAddress, amount: uint256, to: EthAddress, maxGasForMatching
|
|
15
|
+
constructor(tokenAddr: EthAddress, amount: uint256, to: EthAddress, maxGasForMatching?: uint256);
|
|
16
16
|
}
|
|
@@ -12,7 +12,7 @@ export class MorphoAaveV2BorrowAction extends Action {
|
|
|
12
12
|
* @param to - Borrowed tokens will be sent to this address
|
|
13
13
|
* @param maxGasForMatching - Max gas to spend on p2p matching
|
|
14
14
|
*/
|
|
15
|
-
constructor(tokenAddr, amount, to, maxGasForMatching) {
|
|
15
|
+
constructor(tokenAddr, amount, to, maxGasForMatching = '0') {
|
|
16
16
|
super('MorphoAaveV2Borrow', getAddr('MorphoAaveV2Borrow'), ['address', 'uint256', 'address', 'uint256'], [tokenAddr, amount, to, maxGasForMatching]);
|
|
17
17
|
this.mappableArgs = [
|
|
18
18
|
this.args[0],
|
|
@@ -13,7 +13,7 @@ export declare class MorphoAaveV2SupplyAction extends Action {
|
|
|
13
13
|
* @param onBehalf - Tokens will be supplied to this address' position (defaults to sender's proxy)
|
|
14
14
|
* @param maxGasForMatching - Max gas to spend on p2p matching
|
|
15
15
|
*/
|
|
16
|
-
constructor(tokenAddr: EthAddress, amount: uint256, from: EthAddress, onBehalf
|
|
16
|
+
constructor(tokenAddr: EthAddress, amount: uint256, from: EthAddress, onBehalf?: EthAddress, maxGasForMatching?: uint256);
|
|
17
17
|
getAssetsToApprove(): Promise<{
|
|
18
18
|
asset: any;
|
|
19
19
|
owner: any;
|
|
@@ -23,7 +23,7 @@ export class MorphoAaveV2SupplyAction extends Action {
|
|
|
23
23
|
* @param onBehalf - Tokens will be supplied to this address' position (defaults to sender's proxy)
|
|
24
24
|
* @param maxGasForMatching - Max gas to spend on p2p matching
|
|
25
25
|
*/
|
|
26
|
-
constructor(tokenAddr, amount, from, onBehalf = getAddr('Empty'), maxGasForMatching) {
|
|
26
|
+
constructor(tokenAddr, amount, from, onBehalf = getAddr('Empty'), maxGasForMatching = '0') {
|
|
27
27
|
super('MorphoAaveV2Supply', getAddr('MorphoAaveV2Supply'), ['address', 'uint256', 'address', 'address', 'uint256'], [tokenAddr, amount, from, onBehalf, maxGasForMatching]);
|
|
28
28
|
this.mappableArgs = [
|
|
29
29
|
this.args[0],
|
package/package.json
CHANGED
package/umd/index.js
CHANGED
|
@@ -8379,7 +8379,7 @@ class MorphoAaveV2SupplyAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Acti
|
|
|
8379
8379
|
*/
|
|
8380
8380
|
constructor(tokenAddr, amount, from) {
|
|
8381
8381
|
var onBehalf = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('Empty');
|
|
8382
|
-
var maxGasForMatching = arguments.length > 4 ? arguments[4] :
|
|
8382
|
+
var maxGasForMatching = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '0';
|
|
8383
8383
|
super('MorphoAaveV2Supply', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('MorphoAaveV2Supply'), ['address', 'uint256', 'address', 'address', 'uint256'], [tokenAddr, amount, from, onBehalf, maxGasForMatching]);
|
|
8384
8384
|
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
8385
8385
|
}
|
|
@@ -8449,7 +8449,8 @@ class MorphoAaveV2BorrowAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
8449
8449
|
* @param to - Borrowed tokens will be sent to this address
|
|
8450
8450
|
* @param maxGasForMatching - Max gas to spend on p2p matching
|
|
8451
8451
|
*/
|
|
8452
|
-
constructor(tokenAddr, amount, to
|
|
8452
|
+
constructor(tokenAddr, amount, to) {
|
|
8453
|
+
var maxGasForMatching = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '0';
|
|
8453
8454
|
super('MorphoAaveV2Borrow', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('MorphoAaveV2Borrow'), ['address', 'uint256', 'address', 'uint256'], [tokenAddr, amount, to, maxGasForMatching]);
|
|
8454
8455
|
this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
|
|
8455
8456
|
}
|