Skip to content

Commit

Permalink
change min balance amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Jan 6, 2025
1 parent 4a1fe3a commit 9c2c245
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function BalanceBanner({ accountId, treasuryDaoID }) {
const nearBalances = getNearBalances(accountId);

const LOW_BALANCE_LIMIT = 0.7; // 0.7N
const INSUFFICIENT_BALANCE_LIMIT = 0.3; // 0.3N
const INSUFFICIENT_BALANCE_LIMIT = 0.1; // 0.1N

const profile = Social.getr(`${accountId}/profile`);
const name = profile.name ?? accountId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ADDITIONAL_AMOUNT = checkForDeposit
? formatNearAmount(daoPolicy?.proposal_bond)
: 0;

const INSUFFICIENT_BALANCE_LIMIT = ADDITIONAL_AMOUNT + 0.3; // 0.3N
const INSUFFICIENT_BALANCE_LIMIT = ADDITIONAL_AMOUNT + 0.1; // 0.1N

function checkBalance() {
if (parseFloat(nearBalances?.availableParsed) < INSUFFICIENT_BALANCE_LIMIT) {
Expand Down
2 changes: 1 addition & 1 deletion playwright-tests/util/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export const encodeToMarkdown = (data) => {
.join(" <br>");
};

export const InsufficientBalance = BigInt(0.2 * 10 ** 24).toString();
export const InsufficientBalance = BigInt(0.05 * 10 ** 24).toString();

0 comments on commit 9c2c245

Please sign in to comment.