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

[Bridge] Add Min & Max limits #1151

Merged
merged 90 commits into from
Sep 26, 2023
Merged

[Bridge] Add Min & Max limits #1151

merged 90 commits into from
Sep 26, 2023

Conversation

Nikita-Polyakov
Copy link
Contributor

@Nikita-Polyakov Nikita-Polyakov commented Sep 7, 2023

@Nikita-Polyakov Nikita-Polyakov requested a review from a team September 26, 2023 06:52
get nativeTokenSymbol(): string {
return this.nativeToken?.symbol ?? '';
}

get nativeTokenDecimals(): number | undefined {
return this.nativeToken?.externalDecimals;
}

get outgoingMaxAmount(): FPNumber | null {
const filtered = [this.assetLockedBalance, this.outgoingMaxLimit].filter((item) => item !== null) as FPNumber[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use filter((item) => !item) here cuz this value won't be ''/false/0

@Nikita-Polyakov Nikita-Polyakov merged commit d3c3d70 into develop Sep 26, 2023
@Nikita-Polyakov Nikita-Polyakov deleted the feature/bridge-limit branch September 26, 2023 10:14
timofeytrepalin pushed a commit to soramitsu/adar that referenced this pull request Sep 28, 2023
* remove vue-svg-loader

* remove cache-loader from vue-loader

* rewrite vue.config.js

* update wallet

* css fixes

* remove sass warnings

* fix spacing

* add alt attrs to RoadMap

* remove some todo

* update ethers usage

* refactoring ethers utils

* add type annotaions

* small fixes

* wip external fee

* refactoring adapter to remove hardcoded networks usage

* add prefix for external fee

* history restoration console info

* fix sub bridge max btn

* remove external network fee getter

* refactoring

* fix sonar issues

* refactoring bridge utils

* update api.query usage

* improve tracking

* refactoring sub reducers

* improve sub history restoration

* sonar issue refactoring

* wip external fiat values

* add nativeTOken getter to bridge

* fix BridgeTransaction address

* refactoring balance utils

* remove bridgeApi from getters

* fix transaction view prefix

* update wallet 1.21.2

* add asset limit subscription

* rework asset transfer limit update

* update bridge subscription logic

* bridge view computed

* remove unused variable

* prepare for subscription update

* asset max limit subscription

* update bridge transaction view

* add min limit fetching

* add getters to bridge views

* add bridge limit card

* update translations

* replace relayChainBlockNumber call

* bridge ui fixes

* reset bridge form, fix network change

* connection additional checks

* await isReady promises

* open sora parachain connection after select network

* refactoring sub networks connector

* refactoring web3 store

* improve loading states & refactoring actions

* fix bridge loading logix

* refactoring bridge balances fetching

* fix sub network fee & bridge container

* update bridge quote

* update bridge quote

* fix bridge loading state

* fix bridge actions promise.all reject

* fix connection open

* fix locked balance calc

* rename web3 method

* change CodecString to FPNumber in store balances

* refactoring sonar issues

* fix bridge amount decimals in form

* update eth bridge locked balance

* update wallet 1.22.0

* refactoring sonar issues

* update filter fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental_environment This pr will be deployed on tachi cluster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants