Skip to content

Commit

Permalink
dist start amount use the merkle leaf rather than dist info (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfogg authored Nov 26, 2022
1 parent 7089c84 commit cbc9b7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import TransactionProvider from '@/contexts/Transactions'
import TxPopup from '@/components/TxPopup'
import '@/components/TxPopup/styles.css'

console.log('v1.0.3')

function getLibrary(provider: any): Web3Provider {
const library = new Web3Provider(provider)
library.pollingInterval = 12000
Expand Down
4 changes: 2 additions & 2 deletions src/pages/distribution/components/Locked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const Migration: React.FC = () => {
<Typography className='py-2 font-semibold text-text-100'>Original Distribution Amount</Typography>
<div className='flex h-8 w-auto flex-row items-center justify-center gap-2 rounded border border-primary-400 bg-primary-100 px-2 py-4'>
<Image src='/images/tokens/BAO.png' height={24} width={24} alt='BAO' />
<Typography className='font-bold'>{getDisplayBalance(merkleLeaf ? merkleLeaf.amount : BigNumber.from(0))}</Typography>
<Typography className='font-bold'>{getDisplayBalance(dist ? dist.amountOwedTotal : BigNumber.from(0))}</Typography>
</div>
</div>

Expand Down Expand Up @@ -263,7 +263,7 @@ const Migration: React.FC = () => {
<Typography className='py-2 font-semibold text-text-100'>Distribution Amount</Typography>
<div className='flex h-8 w-auto flex-row items-center justify-center gap-2 rounded border border-primary-400 bg-primary-100 px-2 py-4'>
<Image src='/images/tokens/BAO.png' height={24} width={24} alt='BAO' />
<Typography className='font-bold'>{getDisplayBalance(dist ? dist.amountOwedTotal : BigNumber.from(0))}</Typography>
<Typography className='font-bold'>{getDisplayBalance(merkleLeaf ? merkleLeaf.amount : BigNumber.from(0))}</Typography>
</div>
</div>
{pendingTx ? (
Expand Down

0 comments on commit cbc9b7a

Please sign in to comment.