Skip to content

Commit

Permalink
Merge branch 'master' into release/kintsugi/2.40.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	package.json
#	src/hooks/api/escrow/use-get-account-voting-balance.tsx
#	src/pages/Staking/ClaimRewardsButton/index.tsx
#	src/pages/Staking/WithdrawButton/index.tsx
#	src/pages/Staking/components/StakingAccountDetails/StakingAccountDetails.tsx
#	src/pages/Staking/components/StakingWithdrawCard/StakingWithdrawCard.tsx
#	src/utils/constants/currency.ts
#	yarn.lock
  • Loading branch information
tomjeatt committed Nov 16, 2023
2 parents 5b8cc95 + 353f77e commit cbfe737
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "interbtc-ui",
"version": "2.40.0",
"version": "2.40.1",
"private": true,
"dependencies": {
"@craco/craco": "^6.1.1",
"@headlessui/react": "^1.1.1",
"@heroicons/react": "^2.0.18",
"@interlay/bridge": "^0.4.0",
"@interlay/bridge": "^0.4.1",
"@interlay/interbtc-api": "2.5.1",
"@interlay/monetary-js": "0.7.3",
"@polkadot/api": "10.9.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ const StakingAccountDetails = ({
const transaction = useTransaction(Transaction.ESCROW_WITHDRAW_REWARDS, {
onSuccess: () => {
onClaimRewards();
setOpen(false);
}
});

const handleSubmit = () => transaction.execute();
const handleSubmit = () => {
transaction.execute();
setOpen(false);
};

const handleOpen = () => transaction.fee.estimate();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ const StakingWithdrawCard = ({ data, onWithdraw, ...props }: StakingWithdrawCard
const transaction = useTransaction(Transaction.ESCROW_WITHDRAW, {
onSuccess: () => {
onWithdraw();
setOpen(false);
}
});

const handleSubmit = () => transaction.execute();
const handleSubmit = () => {
transaction.execute();
setOpen(false);
};

const handleOpen = () => transaction.fee.estimate();

Expand Down
4 changes: 2 additions & 2 deletions src/utils/constants/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const NATIVE_CURRENCIES: Array<CurrencyExt> = isPolkadotChain
? [Polkadot, InterBtc, Interlay]
: [KBtc, Kintsugi, Kusama];

const BIFROST_RELAY_CHAIN_NATIVE_TOKEN = isPolkadotChain ? 'VDOT' : 'VKSM';

const FEE_TICKERS = [...NATIVE_CURRENCIES.map(({ ticker }) => ticker), 'USDT'];

const BIFROST_RELAY_CHAIN_NATIVE_TOKEN = isPolkadotChain ? 'VDOT' : 'VKSM';

const COINGECKO_ID_BY_CURRENCY_TICKER: Record<string, typeof COINGECKO_IDS[number]> = Object.freeze({
[Bitcoin.ticker]: 'bitcoin',
[Kintsugi.ticker]: 'kintsugi',
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2966,10 +2966,10 @@
resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c"
integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==

"@interlay/bridge@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@interlay/bridge/-/bridge-0.4.0.tgz#a8ee25a0bcec1579d1a0ad668345080c567ac254"
integrity sha512-884QMnnOcnzxUU9IgW3xLhzusQ36z2f7vdRTfB8CXkKEZwdMpq6pXlZM9GSWFyw5zvSeG8dn2IgFd4642eOp9w==
"@interlay/bridge@^0.4.1":
version "0.4.1"
resolved "https://registry.yarnpkg.com/@interlay/bridge/-/bridge-0.4.1.tgz#8df57a2c9f8d51cb7ee1028144f485828df9b625"
integrity sha512-7fW/j0TUEmpBA5zAUfbxxSQReM7LwwHQD10VzUA95+oasjR/hTMALXtSnMAT4tyWZzFk5KZvp5G5RG6Xypm1RA==
dependencies:
"@acala-network/api" "^5"
"@acala-network/sdk" "^4.1.9-7"
Expand Down

0 comments on commit cbfe737

Please sign in to comment.