@verified-network/verified-sdk 1.3.0 → 1.3.1
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.
|
@@ -32,7 +32,7 @@ class MarginIssueManager extends index_1.VerifiedContract {
|
|
|
32
32
|
await this.validateInput(index_1.DATATYPES.NUMBER, margin);
|
|
33
33
|
await this.validateInput(index_1.DATATYPES.NUMBER, collateral);
|
|
34
34
|
await this.validateInput(index_1.DATATYPES.NUMBER, tradeFee);
|
|
35
|
-
return this.callContract(FUNCTIONS.
|
|
35
|
+
return this.callContract(FUNCTIONS.ISSUEPRODUCT, security, this.sanitiseInput(index_1.DATATYPES.BYTE32, securityType), currency, this.sanitiseInput(index_1.DATATYPES.BYTE32, cficode), securityAmount, minOrderSize, currencyAmount, margin, collateral, tradefee, options);
|
|
36
36
|
}
|
|
37
37
|
async close(security, options) {
|
|
38
38
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
@@ -83,7 +83,7 @@ class MarginIssueManager extends index_1.VerifiedContract {
|
|
|
83
83
|
async withdraw(security, currency, options) {
|
|
84
84
|
await this.validateInput(index_1.DATATYPES.ADDRESS, security);
|
|
85
85
|
await this.validateInput(index_1.DATATYPES.ADDRESS, currency);
|
|
86
|
-
return this.callContract(FUNCTIONS.WITHDRAW,
|
|
86
|
+
return this.callContract(FUNCTIONS.WITHDRAW, security, currency, options);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
exports.default = MarginIssueManager;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
const index_1 = require("../index");
|
|
6
|
-
const VerifiedMarkets_json_1 = require("
|
|
6
|
+
const VerifiedMarkets_json_1 = require("../../../abi/loans/compound/VerifiedMarkets.json");
|
|
7
7
|
var FUNCTIONS;
|
|
8
8
|
(function (FUNCTIONS) {
|
|
9
9
|
FUNCTIONS["NEWRWA"] = "submitNewRWA";
|