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

[release] Kintsugi 2.32.3 #1228

Merged
merged 15 commits into from
May 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interbtc-ui",
"version": "2.32.2",
"version": "2.32.3",
"private": true,
"dependencies": {
"@craco/craco": "^6.1.1",
Original file line number Diff line number Diff line change
@@ -212,6 +212,14 @@ const CrossChainTransferForm = (): JSX.Element => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [accountId, destinationChains]);

// TODO: When we refactor account select this should be handled there so
// that it's consitent across the application
useEffect(() => {
if (!accountId) return;
form.setFieldValue(CROSS_CHAIN_TRANSFER_TO_ACCOUNT_FIELD, accountId?.toString());
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [accountId]);

if (!originatingChains || !destinationChains || !transferableTokens.length) {
return (
<Flex justifyContent='center'>
2 changes: 1 addition & 1 deletion src/utils/hooks/api/xcm/use-xcm-bridge.ts
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ const useXCMBridge = (): UseXCMBridge => {
const minInputToBig = Big(inputConfig.minInput.toString());

// Never show less than zero
const transferableBalance = inputConfig.maxInput < inputConfig.minInput ? 0 : maxInputToBig;
const transferableBalance = inputConfig.maxInput.isLessThan(inputConfig.minInput) ? 0 : maxInputToBig;
const currency = XCMBridge.findAdapter(from).getToken(token, from);

const nativeToken = originAdapter.getNativeToken();