Skip to content

Commit

Permalink
Hotfix, orbiter vc code (5.3.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
axtezy authored Mar 1, 2024
2 parents dfac6f9 + 4351e18 commit 66065c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubic-sdk",
"version": "5.3.1",
"version": "5.3.2",
"description": "Simplify dApp creation",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export class OrbiterUtils {
const tradingFee = this.getTradingFee(from, config);
const amountMinusTradingFee = from.tokenAmount.minus(tradingFee);
const weiAmount = Web3Pure.toWei(amountMinusTradingFee, from.decimals);
const total = weiAmount.replace(/\d{4}$/g, config.vc);
const pureVC = config.vc.replace(/^0+/g, '');
const total = weiAmount.replace(/\d{4}$/g, pureVC);

return total;
}
Expand Down

0 comments on commit 66065c0

Please sign in to comment.