Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/lib/rpc/src/v2/renVMProvider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import BigNumber from "bignumber.js";

import {
BurnAndReleaseTransaction,
getRenNetworkDetails,
Expand All @@ -21,7 +23,6 @@ import {
sleep,
toURLBase64,
} from "@renproject/utils";
import BigNumber from "bignumber.js";

import { AbstractRenVMProvider } from "../abstract";
import {
Expand Down Expand Up @@ -553,7 +554,10 @@ export class RenVMProvider
}

const { gasLimit, gasCap } = blockState[asset];
const fee = new BigNumber(gasLimit).times(new BigNumber(gasCap));
const fee = new BigNumber(gasLimit)
.times(new BigNumber(gasCap))
// Temporary work-around.
.shiftedBy(asset === "LUNA" ? -5 : 0);

const mintAndBurnFees = blockState[asset].fees.chains.filter(
(chainFees) => chainFees.chain === hostChain.name,
Expand Down