Skip to content

Commit

Permalink
fix(cspell): in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Mar 9, 2024
1 parent 2f3b46c commit 633ea05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log"],
"ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log", "/lib"],
"useGitignore": true,
"language": "en",
"words": [
Expand Down
13 changes: 0 additions & 13 deletions static/scripts/rewards/web3/erc20-permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,6 @@ export async function checkPermitClaimable(app: AppState): Promise<boolean> {
const permit = reward.permit;
const permitted = BigNumber.from(permit.permitted.amount);

// keyxng's

// let treasury;
// try {
// treasury = await fetchFundingWallet(app);
// } catch (error: unknown) {
// console.error("Error in fetchTreasury: ", error);
// return false;
// }

// const { balance, allowance } = treasury;
// const permitted = BigNumber.from(reward.permit.permitted.amount);

const isSolvent = balance.gte(permitted);
const isAllowed = allowance.gte(permitted);

Expand Down

0 comments on commit 633ea05

Please sign in to comment.