Skip to content
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

previews of tokens #20

Closed
3 tasks done
luckyrobot opened this issue Mar 25, 2022 · 1 comment · Fixed by #24
Closed
3 tasks done

previews of tokens #20

luckyrobot opened this issue Mar 25, 2022 · 1 comment · Fixed by #24

Comments

@luckyrobot
Copy link

luckyrobot commented Mar 25, 2022

In the future - the input boxes will probably be disabled as well if the buttons are disabled

Originally posted by @RusseII in #17 (comment)

@luckyrobot luckyrobot changed the title - [x] handle max supply similar to https://matcha.xyz/markets/1/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee show current balance of the BOND token next to max, clicking max should populate the input with total number of bond tokens the user has previews of tokens Mar 25, 2022
@RusseII
Copy link
Contributor

RusseII commented Mar 25, 2022

will probably just be hooks:
useRedeemableTokens(number_inputted_in_redeembox) calls previewRedeemAtMaturity method

useConvertibleTokens(number_inputted_in_convert_box) (calls previewConvertBeforeMaturity method)

luckyrobot added a commit that referenced this issue Mar 25, 2022
luckyrobot added a commit that referenced this issue Mar 26, 2022
* 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
luckyrobot added a commit that referenced this issue Mar 29, 2022
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
luckyrobot added a commit that referenced this issue Mar 29, 2022
…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>
Geczy added a commit that referenced this issue May 7, 2022
* 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
Geczy added a commit that referenced this issue May 7, 2022
…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>
Geczy added a commit that referenced this issue May 7, 2022
* 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
Geczy added a commit that referenced this issue May 7, 2022
…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>
Geczy added a commit that referenced this issue May 7, 2022
* 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
Geczy added a commit that referenced this issue May 7, 2022
…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>
Geczy pushed a commit that referenced this issue May 7, 2022
* 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
Geczy pushed a commit that referenced this issue May 7, 2022
…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>
Geczy added a commit that referenced this issue May 7, 2022
* 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
Geczy added a commit that referenced this issue May 7, 2022
…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>
Geczy added a commit that referenced this issue May 7, 2022
…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>
Geczy added a commit that referenced this issue May 7, 2022
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants