-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to create a bond from the UI (product creation page) #32 #26
Add ability to create a bond from the UI (product creation page) #32 #26
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/porter-finance/frontend-ido/7VKRPx8w2wWb7zfQ5VtZjU1ckskG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments so far - will review more tomorrow
* add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance>
Wow all conflicts fixed! |
src/hooks/useApproveCallback.ts
Outdated
@@ -1,6 +1,7 @@ | |||
import { useCallback, useMemo } from 'react' | |||
|
|||
import { MaxUint256 } from '@ethersproject/constants' | |||
import { Contract } from '@ethersproject/contracts' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable? Why didn't the pre-commit hooks catch this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think its a "warning" not an "error" so it allows it to go through
but im using intellij now and it will auto optimize imports when i hit save. super lux
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit 3e952cc Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit 3e952cc Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit 3e952cc Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit 3e952cc Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit 3e952cc Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit f148e4d Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
…26) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * add portfolio page closes #5 * calling hasRole * fix disconnect * add createBond function * submit form values to contract * this should fix routes * fix create bond call * create bond as a hook * fix passing in args * add role loading * add mint & approve * approveAndMint call * add fake bond data for quick creations * holy changes to mint * finish minting * Squashed commit of the following: commit 3e952cc Author: luckyrobot <97241616+luckyrobot@users.noreply.github.com> Date: Sat Mar 26 11:01:01 2022 -0700 Previews of tokens #20 (#24) * upgrade packages * remove documentation pages * fix max supply of convert closes #21 * when logged out on bond page closes #22 * fix showing bond balance * add preview of tokens closes #20 * remove ethers * fix missing paid function * make tokenAmount more clear * make available overflow ellipsis * 27 get price data for collateral token (#28) * add useTokenPrice hook * add working token price hook * linting - why aren't hooks doing this @luckyrobot? * remove apollo add useSwr * use rpl contract if not on mainnet * reload pricing data every 5 seconds * linting - why aren't hooks doing this @luckyrobot? * fix linting and update refresh interval * remove unused code Co-authored-by: bookland <bookland.porter.finance> Co-authored-by: RusseII <bookland@porter.finance>
closes #