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

fix: get thresholds for supported collaterals only #431

Merged
merged 3 commits into from
Aug 9, 2022

Conversation

peterslany
Copy link
Contributor

Fix to get threshold limits only for supported collateral threshold currencies in the VaultTable.

@vercel
Copy link

vercel bot commented Aug 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview Aug 9, 2022 at 4:05PM (UTC)
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview Aug 9, 2022 at 4:05PM (UTC)
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview Aug 9, 2022 at 4:05PM (UTC)
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview Aug 9, 2022 at 4:05PM (UTC)

@github-actions
Copy link

github-actions bot commented Aug 9, 2022

Running Lighthouse audit...

@peterslany peterslany marked this pull request as ready for review August 9, 2022 15:39
@peterslany peterslany merged commit ea6b218 into master Aug 9, 2022
@peterslany peterslany deleted the peter/fix-collateral-thresholds-fetching branch August 9, 2022 16:44
crypto-engineer added a commit to crypto-engineer/interbtc-ui that referenced this pull request Aug 9, 2022
crypto-engineer added a commit to crypto-engineer/interbtc-ui that referenced this pull request Aug 12, 2022
crypto-engineer added a commit to crypto-engineer/interbtc-ui that referenced this pull request Aug 16, 2022
…es for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

feat: upgrade @interlay/interbtc-api, mark change points, and fix cases for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

fix: correct PR interlay#431 changes

chore: mark the issue points (WIP)

fix: update VaultsTable

chore: add testing cases

fix: correct USE_WRAPPED_CURRENCY_LINK

chore: clean up

docs: add a TODO comment
crypto-engineer added a commit to crypto-engineer/interbtc-ui that referenced this pull request Aug 16, 2022
…es for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

feat: upgrade @interlay/interbtc-api, mark change points, and fix cases for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

fix: correct PR interlay#431 changes

chore: mark the issue points (WIP)

fix: update VaultsTable

chore: add testing cases

fix: correct USE_WRAPPED_CURRENCY_LINK

chore: clean up

docs: add a TODO comment
crypto-engineer added a commit to crypto-engineer/interbtc-ui that referenced this pull request Aug 16, 2022
…es for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

feat: upgrade @interlay/interbtc-api, mark change points, and fix cases for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

fix: correct PR interlay#431 changes

chore: mark the issue points (WIP)

fix: update VaultsTable

chore: add testing cases

fix: correct USE_WRAPPED_CURRENCY_LINK

chore: clean up

docs: add a TODO comment

fix: replace issue.getVaultIssuableAmount with vaults.getIssuableTokensFromVault

fix: update VaultsTable
crypto-engineer added a commit to crypto-engineer/interbtc-ui that referenced this pull request Aug 16, 2022
…es for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

feat: upgrade @interlay/interbtc-api, mark change points, and fix cases for new BitcoinAmount() and BitcoinAmount.zero()

refactor: update ChainBalance cases

refactor: update MonetaryAmount<CollateralCurrencyExt> cases

chore: clean up

refactor: update ReplaceTable

refactor: update MonetaryAmount<CurrencyExt> cases

chore: clean up

refactor: update CURRENCIES

refactor: update for RELAY_CHAIN_NATIVE_TOKEN and CollateralToken

chore: clean up

refactor: update with RELAY_CHAIN_NATIVE_TOKEN_ID_LITERAL

chore: clean up

refactor: update with WRAPPED_TOKEN

chore: clean up

refactor: update with WrappedTokenIdLiteral and GovernanceTokenIdLiteral

chore: clean up

refactor: remove GOVERNANCE_TOKEN_ID_LITERAL use cases

refactor: remove CollateralCurrency use cases

chore: clean up

chore: add TODOs temporarily

refactor: update getUsdAmount

refactor: update relay-chains

chore: clean up

refactor: update oracle-exchange-rates-fetcher

chore: clean up

refactor: update currency.ts

refactor: update with GovernanceCurrency

chore: clean up

refactor: update VaultExt cases

chore: clean up

refactor: update CurrencyUnit cases

chore: clean up

fix: correct InterbtcPrimitivesReplaceReplaceRequestStatus usage

refactor: update rawBase cases

chore: clean up

refactor: update str.BTC cases

chore: clean up

refactor: update getCurrency use cases

chore: clean up

refactor: update Vault issues

refactor: update some cases

refactor: update VAULT_COLLATERAL_TOKENS use cases

fix: update some cases

refactor: update CURRENCIES

refactor: update some cases

chore: clean up

fix: suppress one type error

chore: format

refactor: update genericFetcher cases

feat: upgrade @interlay/interbtc-api

chore: clean up

fix: correct types

chore: clean up

fix: correct commenting

chore: clean up

chore: clean up

refactor: update Vault

fix: correct PR interlay#431 changes

chore: mark the issue points (WIP)

fix: update VaultsTable

chore: add testing cases

fix: correct USE_WRAPPED_CURRENCY_LINK

chore: clean up

docs: add a TODO comment

fix: replace issue.getVaultIssuableAmount with vaults.getIssuableTokensFromVault

fix: update VaultsTable
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 this pull request may close these issues.

None yet

2 participants