Skip to content

Commit

Permalink
increast nSTBL mint limit
Browse files Browse the repository at this point in the history
Increased nSTBL mint limit to 10,000
  • Loading branch information
Vitalsine85 committed Nov 17, 2021
1 parent b98c9c6 commit 9247bc1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/views/Nest/components/IssueModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import NestTokenInput from 'components/NestTokenInput'
import NestTokenOutput from 'components/NestTokenOutput'
import Spacer from 'components/Spacer'
import useBao from 'hooks/useBao'
import useAllowancev2 from '../../../hooks/useAllowancev2'
import useApprovev2 from '../../../hooks/useApprovev2'
import useNestIssue from 'hooks/useNestIssue'
import useNestRate from 'hooks/useNestRate'
import useTokenBalance from 'hooks/useTokenBalance'
import React, { useCallback, useMemo, useState } from 'react'
import { getDisplayBalance } from 'utils/numberFormat'
import { Contract } from 'web3-eth-contract'
import Config from '../../../bao/lib/config'
import useAllowancev2 from '../../../hooks/useAllowancev2'
import useApprovev2 from '../../../hooks/useApprovev2'
import { CloseButton, Disclaimer, HidePrice } from './styles'

interface IssueModalProps extends ModalProps {
Expand Down Expand Up @@ -53,12 +53,12 @@ const IssueModal: React.FC<IssueModalProps> = ({
const navDifferenceTooHigh = useMemo(
() =>
nav &&
nav.nav
.minus(nav.mainnetNav)
.div(nav.nav)
.times(100)
.abs()
.gt(5),
nav.nav
.minus(nav.mainnetNav)
.div(nav.nav)
.times(100)
.abs()
.gt(5),
[nav],
)

Expand Down Expand Up @@ -168,7 +168,7 @@ const IssueModal: React.FC<IssueModalProps> = ({
</p>
{nestName === 'nSTBL' && (
<p>
Due to low liquidity, there is a mint limit in place for 10 nSTBL.{' '}
Due to low liquidity, there is a mint limit in place for 10,000 nSTBL.{' '}
As liquidity for RAI on Polygon goes up, the limit will increase.
</p>
)}
Expand Down Expand Up @@ -269,7 +269,7 @@ const IssueModal: React.FC<IssueModalProps> = ({
parseFloat(wethNeeded) > wethBalance.div(10 ** 18).toNumber() ||
!nav ||
navDifferenceTooHigh ||
(nestName === 'nSTBL' && parseFloat(nestAmount) > 10)
(nestName === 'nSTBL' && parseFloat(nestAmount) > 10000)
}
text={
confNo
Expand Down

0 comments on commit 9247bc1

Please sign in to comment.