@swaptoshi/dex-module
Version:
Klayr decentralized exchange (dex) on-chain module
12 lines • 586 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeBaseFee = executeBaseFee;
async function executeBaseFee(context) {
if (!this._config || !this._feeMethod)
return;
const config = await this._config.getConfig(context);
if (context.transaction.module === this.name && config.baseFee[context.transaction.command] && BigInt(config.baseFee[context.transaction.command]) > BigInt(0)) {
this._feeMethod.payFee(context, BigInt(config.baseFee[context.transaction.command]));
}
}
//# sourceMappingURL=executeBaseFee.js.map