@volare.finance/volare.js
Version:
The SDK for Volare Protocol
22 lines • 692 B
JavaScript
;
/**
* @file marginPool.ts
* @author astra <astra@volare.finance>
* @date 2022
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MarginPool = void 0;
const utils_js_1 = require("@volare.finance/utils.js");
const ethers_1 = require("ethers");
const MarginPool_json_1 = require("../artifacts/MarginPool.json");
class MarginPool extends utils_js_1.Provider {
static ABI() {
return MarginPool_json_1.abi;
}
constructor(contract, endpoint) {
super(endpoint);
this.contract = new ethers_1.Contract(contract, MarginPool.ABI(), this.provider);
}
}
exports.MarginPool = MarginPool;
//# sourceMappingURL=MarginPool.js.map