Skip to content

Commit

Permalink
fix: explorer faucet 50k
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Dec 8, 2023
1 parent bb7ed0f commit d22a70e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-tomatoes-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

The faucet validation now allows up to 50,000 SC.
4 changes: 2 additions & 2 deletions apps/explorer/components/Faucet/FaucetFundForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const validationSchema = Yup.object().shape({
'Must be greater than 0 SC',
(val) => !new BigNumber(val || 0).isZero()
)
.test('less than 1000', 'Must be 1,000 SC or less', (val) =>
new BigNumber(val || 0).lte(1000)
.test('less than 1000', 'Must be 50,000 SC or less', (val) =>
new BigNumber(val || 0).lte(50_000)
),
})

Expand Down

0 comments on commit d22a70e

Please sign in to comment.