UNPKG

rubic-sdk

Version:
16 lines 754 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStonfiTotalGas = getStonfiTotalGas; const native_tokens_1 = require("../../../../../../../common/tokens/constants/native-tokens"); const web3_pure_1 = require("../../../../../../../core/blockchain/web3-pure/web3-pure"); /** * @returns wei total gas */ function getStonfiTotalGas(from, to) { if (from.isNative) return web3_pure_1.Web3Pure.toWei(0.185, native_tokens_1.nativeTokensList.TON.decimals); if (to.isNative) return web3_pure_1.Web3Pure.toWei(0.17, native_tokens_1.nativeTokensList.TON.decimals); return web3_pure_1.Web3Pure.toWei(0.22, native_tokens_1.nativeTokensList.TON.decimals); } //# sourceMappingURL=get-stonfi-gas.js.map