Skip to content

Commit

Permalink
Merge pull request #665 from Sifchain/staging
Browse files Browse the repository at this point in the history
[hotfix] v2.6.19
  • Loading branch information
alanrsoares authored May 13, 2022
2 parents b09fdcc + 2028c3e commit d962db7
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Release 2022.05.12

- Decomission UST and LUNA

## Release 2022.05.09

- Add more information about price impact on Swap's confirmation step
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "2.6.18",
"version": "2.6.19",
"private": true,
"scripts": {
"bump": "bump patch --tag --commit 'testnet release '",
Expand Down
1 change: 1 addition & 0 deletions app/src/hooks/useToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export const useTokenList = (params: TokenListParams) => {
if (params.showDecomissionedAssets) {
return true;
}

return (
params.showDecomissionedAssetsWithBalance &&
parseFloat(token.amount.amount.toString()) > 0
Expand Down
7 changes: 6 additions & 1 deletion app/src/store/modules/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ export const isChainFlaggedDisabled = (chain: Chain) => {
);
};

const DISABLED_ASSETS: string[] = [];

export const isAssetFlaggedDisabled = (asset: IAsset) => {
if (!asset.homeNetwork) return false;
if (DISABLED_ASSETS.includes(asset.symbol.toLowerCase())) {
return false;
}
return isChainFlaggedDisabled(useChains().get(asset.homeNetwork));
};

Expand All @@ -32,7 +37,7 @@ export const flagsStore = Vuextra.createStore({
allowEmptyLiquidityAdd: false,
voting: true,
enableTestChains: {
// band: false,
// terra: false,
// likecoin: false,
},
balancePageV2: true,
Expand Down
4 changes: 4 additions & 0 deletions core/src/config/networks/sifchain/assets.sifchain.mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,8 @@ const assets: ChainAssetConfig = {
imageUrl:
"https://assets.coingecko.com/coins/images/8284/small/luna1557227471663.png?1567147072",
homeNetwork: "terra",
decommissioned: true,
decommissionReason: "Temporarily decomissioned due to Terra instability",
},
{
symbol: "uusd",
Expand All @@ -888,6 +890,8 @@ const assets: ChainAssetConfig = {
imageUrl:
"https://assets.coingecko.com/coins/images/12681/small/UST.png?1601612407",
homeNetwork: "terra",
decommissioned: true,
decommissionReason: "Temporarily decomissioned due to Terra instability",
},
{
address: "0x05079687d35b93538cbd59fe5596380cae9054a9",
Expand Down
2 changes: 1 addition & 1 deletion core/src/entities/Asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type IAsset = {
label?: string;
hasDarkIcon?: boolean;
homeNetwork: Network;
decommissioned?: true;
decommissioned?: boolean;
decommissionReason?: string;
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sifchain-ui",
"version": "2.6.18",
"version": "2.6.19",
"private": true,
"license": "UNLICENSED",
"packageManager": "[email protected]",
Expand Down

1 comment on commit d962db7

@vercel
Copy link

@vercel vercel bot commented on d962db7 May 13, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.