Skip to content

Commit

Permalink
Fixed nits
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCurryMan committed May 27, 2022
1 parent 5d994ff commit 8ac291f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
8 changes: 8 additions & 0 deletions config/paymentMintConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ export const paymentMintConfig: { [key: string]: PaymentMintConfig } = {
name: 'USDC Devnet',
symbol: 'USDC',
},
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v: {
name: 'USDC',
symbol: 'USDC',
},
So11111111111111111111111111111111111111112: {
name: 'Wrapped SOL',
symbol: 'wSOL',
},
}
11 changes: 0 additions & 11 deletions hooks/useFanoutMembershipMintVouchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ export const useFanoutMembershipMintVouchers = (
}
)

console.log(
programAccounts.map((account) => {
return {
pubkey: account.pubkey,
parsed: hydra.FanoutMembershipMintVoucher.fromAccountInfo(
account.account
)[0].lastInflow.toString(),
}
})
)

return programAccounts.map((account) => {
return {
pubkey: account.pubkey,
Expand Down
2 changes: 1 addition & 1 deletion hooks/useFanoutMints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const useFanoutMints = () => {
name: shortPubKey(mintAddress),
symbol: shortPubKey(mintAddress),
},
} as FanoutMintData
}
})
)
return fanoutMints
Expand Down
3 changes: 1 addition & 2 deletions pages/[walletId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const Home: NextPage = () => {
}
setMapping()
}, [fanoutMembershipVouchers.data, selectedFanoutMint, mintId])
const mapMintVouchersToMembers = async () => {}

async function addSplToken() {
if (fanoutData.data?.fanoutId) {
Expand Down Expand Up @@ -348,7 +347,7 @@ const Home: NextPage = () => {
) *
(Number(voucher.parsed.shares) / 100)
} ${selectedFanoutMint.config.symbol} claimed)`
: 'asd'
: `0 ${selectedFanoutMint.config.symbol} claimed)`
: `${
parseInt(
voucher.parsed.totalInflow.toString()
Expand Down
2 changes: 1 addition & 1 deletion pages/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Home: NextPage = () => {
TOKEN_PROGRAM_ID,
Keypair.generate() // unused
)
let mintInfo = await checkMint.getMintInfo()
const mintInfo = await checkMint.getMintInfo()
if (!mintInfo) {
throw 'Invalid token address'
}
Expand Down

0 comments on commit 8ac291f

Please sign in to comment.