Skip to content

Commit

Permalink
decimal places 6
Browse files Browse the repository at this point in the history
  • Loading branch information
defimaxyy committed Jan 31, 2024
1 parent 58d3f39 commit eb221fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/ThirdWebEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class ThirdWebEngine {
public static isBalanceLow = async () => {
const { result } = await httpFetchBalanceStatus();
const formattedEther = ethers.utils.formatEther(result.value);
const totalFormattedBalance = BigNumber(formattedEther).dp(4).toNumber();
const totalFormattedBalance = BigNumber(formattedEther).dp(6).toNumber();
// Make sue to include your own low balanec logic here. In this example
// if polygon mainnet funds are lower than 0.01 it'll return true
return totalFormattedBalance < 0.01;
Expand Down

0 comments on commit eb221fa

Please sign in to comment.