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.41.0 #1614

Merged
merged 211 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
182fba6
feat: redirect when access from forbidden country is detected (#1209)
peterslany May 19, 2023
ab6a554
Feature/updated transfer UI (#876)
tomjeatt May 22, 2023
65b0748
chore: release v2.32.0
tomjeatt May 22, 2023
8ff52df
Update API healthchecks (#778)
ns212 May 22, 2023
e9157c7
[earn strategies] placeholder page, nav and feature flag (#1216)
tomjeatt May 22, 2023
b04beda
feat: add useTransaction (#1189)
danielsimao May 23, 2023
e158798
chore: update monetary to latest 0.7.3 (#1214)
peterslany May 23, 2023
eee628c
chore: bump lib and bridge (#1219)
tomjeatt May 23, 2023
63b059a
chore: release v2.32.1
tomjeatt May 24, 2023
65d0a00
fix: add missing icons and remove erroring RPC (#1222)
tomjeatt May 24, 2023
250f722
chore: release v2.32.2
tomjeatt May 24, 2023
c000243
fix: compare input configs with method not operator (#1225)
tomjeatt May 24, 2023
17251a3
refactor: reset selected account on account change (#1226)
tomjeatt May 24, 2023
0d81dc5
chore: release v2.32.3
tomjeatt May 24, 2023
63487d0
feature: add geoblock feature flag (#1230)
tomjeatt May 25, 2023
d6db39b
chore: release v2.32.4
tomjeatt May 25, 2023
5f0dcb8
chore: bump bridge (#1233)
tomjeatt May 26, 2023
891de67
chore: release v2.32.5
tomjeatt May 26, 2023
918e944
Peter/earn strategies feat deposit withdraw form (#1229)
peterslany May 30, 2023
aca4e7d
feat: add Popover, Underlay and ProgressBar. Changes to Dialog, Modal…
danielsimao May 30, 2023
252285f
fix: Dialog, Modal and Popover (#1245)
danielsimao May 31, 2023
c845c54
chore: rename strategies feature (#1247)
tomjeatt May 31, 2023
64716ee
chore: release v2.32.6
tomjeatt May 31, 2023
a38f2af
Fix: back button behaviour from bridge page (#1246)
Chanakya888 May 31, 2023
ce9f284
feat: add transaction notifications (#1177)
danielsimao Jun 1, 2023
74eb7ee
chore: remove console.log (#1262)
danielsimao Jun 1, 2023
869efa9
fix(TokenInput): adorment ticker (#1257)
danielsimao Jun 2, 2023
f178d58
fix: get vesting data (#1264)
danielsimao Jun 2, 2023
7283d1e
Peter/chore update lib 2.3.0 (#1267)
peterslany Jun 5, 2023
f9afbb7
fix: sort notifications (#1270)
danielsimao Jun 6, 2023
f6be34f
fix: transaction none (#1271)
danielsimao Jun 7, 2023
36c41c6
fix(Loans): apy label (#1275)
danielsimao Jun 8, 2023
4bf3e13
Peter/loans fix subsidy rewards (#1276)
peterslany Jun 9, 2023
6f2972d
Peter/fix loans incentive apr computation (#1256)
peterslany Jun 9, 2023
0fb9217
chore: release v2.33.0
tomjeatt Jun 12, 2023
d5818f3
Peter/chore update lib 2.3.3 (#1282)
peterslany Jun 12, 2023
c4f05dc
fix: enable faucet on Interlay testnet (#1289)
tomjeatt Jun 14, 2023
bf01bb3
chore: bump bridge (#1285)
tomjeatt Jun 14, 2023
1b48685
fix(Swap): update trade object on each block (#1297)
danielsimao Jun 15, 2023
7669181
api: use diadata as main datasource (#1277)
ns212 Jun 19, 2023
4a19226
Peter/fix interlay issues (#1300)
peterslany Jun 19, 2023
4e1c721
api: select price source via query param and ticker renaming (#1307)
ns212 Jun 19, 2023
a6885d8
api: fix tether label for dia (#1309)
ns212 Jun 19, 2023
bf818bd
chore: release v2.34.0
tomjeatt Jun 20, 2023
1b9ce37
chore: update XCM RPCs (#1324)
tomjeatt Jun 22, 2023
019777a
chore: release v2.34.1
tomjeatt Jun 22, 2023
dc2ffd6
fix: correct wallet balance (#1334)
tomjeatt Jun 23, 2023
054763c
api: switch to coingecko pro url (#1321)
ns212 Jun 23, 2023
bd49606
Peter/feat tx fee with swapped currency (#1340)
danielsimao Jun 26, 2023
8656b5b
chore: release v2.35.0
tomjeatt Jun 26, 2023
f3a7a12
Tom/feature/wallet buttons (#1346)
tomjeatt Jun 27, 2023
0eb4d00
[wallet] add default currencies to wallet (#1335)
tomjeatt Jun 27, 2023
08aa108
chore: update navigation (#1344)
tomjeatt Jun 27, 2023
2bca493
refatctor: remove LBANK configuration and assets (#1355)
tomjeatt Jun 27, 2023
6d32c91
feature: add LDOT icon (#1356)
tomjeatt Jun 27, 2023
9f967f5
Peter/refactor fetch oracle status from chain (#1359)
peterslany Jun 27, 2023
690d951
Peter/fix add wrapped currency as security deposit option (#1360)
peterslany Jun 27, 2023
8cf597d
chore: update price impact warning copy (#1358)
tomjeatt Jun 28, 2023
349df79
[transfer/bridge] open correct tab (#1366)
tomjeatt Jun 28, 2023
9281aa2
refactor: close redeem modal (#1367)
tomjeatt Jun 28, 2023
92554fc
feat: change LoadingSpinner styles and CTA loading spinner (#1372)
danielsimao Jun 28, 2023
7a8db34
feat: replace legacy toast with new notification toast (#1370)
danielsimao Jun 28, 2023
06b0ca4
fix: UI styling bugs (#1371)
tomjeatt Jun 28, 2023
ef2e8dd
Peter/fix bridge dust value validation (#1374)
peterslany Jun 28, 2023
1045cef
feat(Wallet): add USDT and change switch label (#1363)
danielsimao Jun 28, 2023
509960f
fix(Modal): prevent user from clicking when closed (#1364)
danielsimao Jun 28, 2023
c1e15ac
fix(Swap): handle when schema params are undefined (#1375)
danielsimao Jun 28, 2023
66db4d1
feat(Wallet): add welcome banner (#1337)
danielsimao Jun 29, 2023
0c40d3e
fix: correct subscan link (#1378)
tomjeatt Jun 29, 2023
b296507
fix: select token modal list style (#1382)
danielsimao Jun 29, 2023
fadf8ba
fix: improve issue form insufficient funds notice (#1380)
danielsimao Jun 30, 2023
6f8afd8
feature: add tooltip to asset cell (#1345)
tomjeatt Jun 30, 2023
503736a
Onboarding page (#1373)
nud3l Jun 30, 2023
e1e5d31
fix: disable fetch on focus (#1386)
tomjeatt Jun 30, 2023
70bc8e9
fix(Onboarding): improve styles, semantics and file structure (#1387)
danielsimao Jul 3, 2023
81337c5
fix: typo (#1392)
tomjeatt Jul 3, 2023
7765f97
Peter/feat pools trading fee apr (#1389)
peterslany Jul 3, 2023
b35f080
Peter/ choreupdate lib 2.3.5 (#1393)
peterslany Jul 3, 2023
6f6f9ec
chore: release v2.35.1
tomjeatt Jul 3, 2023
304517b
fix: onboarding and empty fee selector (#1396)
danielsimao Jul 4, 2023
3473509
Onboarding feature flag (#1398)
tomjeatt Jul 4, 2023
205950e
chore: release v2.35.2
tomjeatt Jul 4, 2023
73dfae4
api: add dia asset ids to market data endpoint (#1400)
ns212 Jul 4, 2023
366d850
chore: release v2.35.3
tomjeatt Jul 4, 2023
6599a85
api: add dia asset ids to market data endpoint (#1403)
ns212 Jul 4, 2023
ee152f2
chore: release v2.35.4
tomjeatt Jul 4, 2023
746589d
fix(Wallet): add missing guide link (#1406)
danielsimao Jul 4, 2023
4d5576f
feat(Wallet): update welcome banner svg (#1407)
danielsimao Jul 4, 2023
fcdb5af
wip: add T&Cs version (#1409)
tomjeatt Jul 4, 2023
3c23fb0
chore: release v2.35.5
tomjeatt Jul 4, 2023
51bf92f
api: add support for multiple version of terms and conditions (#1411)
ns212 Jul 4, 2023
affc56d
chore: release v2.35.6
tomjeatt Jul 4, 2023
c0e2d17
feat: add parity signer companion for polkadot vault support (#1417)
nud3l Jul 5, 2023
8a9226f
Tom/xcm copy changes (#1391)
tomjeatt Jul 5, 2023
b4223c3
refactor: remove unused feature foags (#1402)
tomjeatt Jul 5, 2023
491eaa0
Peter/fix pools daily volumes (#1421)
peterslany Jul 5, 2023
cba46c5
fix(Pools): deposit validation (#1419)
danielsimao Jul 5, 2023
5583d92
fix: various issues picked up from testing (#1414)
danielsimao Jul 5, 2023
9cbbd19
fix: prefetching fee scenarios (#1384)
danielsimao Jul 5, 2023
8500c2d
fix: hide onboarding button when onboarding disabled (#1418)
tomjeatt Jul 5, 2023
b75f0ce
chore: release v2.35.7
tomjeatt Jul 6, 2023
4a94ead
apply hotfix (#1428)
tomjeatt Jul 6, 2023
9a3f495
Peter/fix byof not working (#1430)
peterslany Jul 6, 2023
b036c9b
chore: release v2.35.8
tomjeatt Jul 7, 2023
fac977e
api: add support ethereum and karura (#1435)
ns212 Jul 7, 2023
9b64c30
Tom/updated directory names (#1434)
tomjeatt Jul 7, 2023
0c457e9
chore: split AMM pages into seperate folders (#1436)
danielsimao Jul 10, 2023
a320deb
feat: check signature version (#1429)
danielsimao Jul 10, 2023
2d67c92
Fix Storybook (#1443)
tomjeatt Jul 10, 2023
9c16ae5
Update routes (#1442)
tomjeatt Jul 10, 2023
a96dab8
Peter/fix q token vaults support (#1445)
peterslany Jul 11, 2023
aa9470e
chore: fix test pipelines (#1379)
danielsimao Jul 11, 2023
d97bd0b
fix(Redeem): redeem limit when there is not capcity (#1451)
danielsimao Jul 14, 2023
d7a5fdb
fix(Redeem): premium redeem (#1454)
danielsimao Jul 14, 2023
f6154d9
Peter/feat loans q token handle edge cases (#1449)
peterslany Jul 14, 2023
ae67a9c
add nova wallet (#1453)
tomjeatt Jul 17, 2023
8ba7cb2
feat: add query params handling (#1347)
danielsimao Jul 17, 2023
319753a
feat: add estimate fee hook and action amount deduction (#1433)
danielsimao Jul 18, 2023
2d0f3de
Update number of wallets in test (#1462)
tomjeatt Jul 18, 2023
278f54f
Support Banxa on Interlay (#1458)
tomjeatt Jul 18, 2023
52ffd0d
chore: release v2.36.0
tomjeatt Jul 18, 2023
013f0e0
fix(Swap): add missing scenario for re-computing trade obj (#1464)
danielsimao Jul 18, 2023
488434f
fix: use correct value for vault capacity indicator (#1465)
sander2 Jul 19, 2023
4b61d20
revert version bump
tomjeatt Jul 19, 2023
822e578
chore: release v2.36.0
tomjeatt Jul 19, 2023
fa6782a
api: add fallback to coingecko for missing assets on dia (#1467)
ns212 Jul 19, 2023
42dc3c4
revert version bump
tomjeatt Jul 19, 2023
30e7d70
chore: release v2.36.0
tomjeatt Jul 19, 2023
ae37c64
fix: fee affecting action amount calculation (#1472)
danielsimao Jul 19, 2023
f2a13c8
chore: release v2.36.1
tomjeatt Jul 20, 2023
ec96157
feat(Strategies): add landing page (#1466)
danielsimao Jul 20, 2023
79ac979
chore: improve translactions (#1447)
danielsimao Jul 20, 2023
5c6a8df
feat: add tooltip to pools and refactor loans tooltip (#1424)
danielsimao Jul 20, 2023
56f45b0
fix(Loans): simplify form and hook (#1476)
danielsimao Jul 20, 2023
c26b788
Rui/loans modals lose close animation due to conditional render (#1460)
danielsimao Jul 20, 2023
c290fb3
fix: loan tests (#1425)
danielsimao Jul 20, 2023
361bb88
Tom/update bg image (#1481)
tomjeatt Jul 24, 2023
2fd08e0
Tom/xcm updates (#1480)
tomjeatt Jul 25, 2023
a8c910a
fix: organize files (#1483)
danielsimao Jul 25, 2023
ca68f9e
refactor: Layout and MainContainer (#1489)
danielsimao Jul 26, 2023
5336dc7
refactor: add block height, parachain status and locked tokens hooks …
danielsimao Jul 26, 2023
12b9271
refactor: replace old faucet approach with use-faucet (#1484)
danielsimao Jul 31, 2023
f563370
Peter/feat dry running (#1499)
peterslany Aug 2, 2023
10edc38
Peter/feat simple passive income strategy page (#1473)
peterslany Aug 3, 2023
19b2f5c
fix(Strategies): improve responsiveness and add form link (#1503)
danielsimao Aug 3, 2023
32a72b9
fix: correct feature flag name (#1504)
tomjeatt Aug 3, 2023
0a0d424
chore: release v2.36.2
tomjeatt Aug 4, 2023
b98f7e2
feat(Slider): add component (#1502)
danielsimao Aug 4, 2023
2e980d6
fix: use route instead of redirect (#1507)
tomjeatt Aug 4, 2023
64ebbcd
chore: release v2.37.0
tomjeatt Aug 4, 2023
66677f7
feat: add breadcrumbs component and add it to strategies (#1505)
danielsimao Aug 4, 2023
238690b
Peter/chore lib update 2.4.0 (#1512)
peterslany Aug 7, 2023
22f012e
fix: conditional check for amount (#1516)
tomjeatt Aug 9, 2023
b58b3a7
docs: roadmap item (#1519)
nud3l Aug 14, 2023
c5fc5ed
feat: add roadmap items to roadmap but not backlog (#1521)
nud3l Aug 14, 2023
e9f6136
feat: zero slippage option (#1497)
sander2 Aug 14, 2023
67ba4b3
chore: bump lib (#1523)
tomjeatt Aug 17, 2023
a896259
Peter/fix staking limit bug (#1515)
peterslany Aug 17, 2023
ecb0fed
Revert "Peter/fix staking limit bug (#1515)"
tomjeatt Aug 18, 2023
5f60748
chore: release v2.38.0
tomjeatt Aug 18, 2023
9af1253
fix: use redirect in route (#1533)
tomjeatt Aug 18, 2023
444b23a
Peter/fix q token vaults volumes fetching (#1535)
peterslany Aug 21, 2023
861e494
fix: only add projects with roadmap label (#1536)
nud3l Aug 22, 2023
1084182
fix: use-get-dex-volumes hook (#1534)
danielsimao Aug 22, 2023
babdcb8
fix(SendAndReceive): remove dry-run from xcm (#1540)
danielsimao Aug 25, 2023
b8b99ae
fix(Pools): remove ratio customization (#1541)
danielsimao Aug 25, 2023
3295e63
wip: update resolutions
tomjeatt Aug 31, 2023
8af4d73
update resolutions
tomjeatt Aug 31, 2023
f1bd600
Revert "update resolutions"
tomjeatt Aug 31, 2023
6e11ce3
Revert "wip: update resolutions"
tomjeatt Aug 31, 2023
1f80570
Tom/site information component (#1552)
tomjeatt Sep 5, 2023
9e6ee51
Peter/refactor usd price formatting (#1553)
peterslany Sep 6, 2023
2a73ce6
fix: correct exchange rate (#1555)
tomjeatt Sep 6, 2023
d21ddf6
fix: formatting (#1556)
tomjeatt Sep 6, 2023
e9414ef
Peter/fix vault dashboard volumes hook (#1557)
peterslany Sep 7, 2023
96c625d
Peter/strategy feat proxy account (#1539)
peterslany Sep 8, 2023
7ce3ddb
chore: remove Karura dwellir node (#1558)
tomjeatt Sep 12, 2023
a965f8c
wip: try setting node options in package (#1559)
tomjeatt Sep 13, 2023
67f5290
api: add voucher-dot and other tokents (#1566)
ns212 Sep 21, 2023
b87943d
chore: release v2.38.1
tomjeatt Sep 25, 2023
711bc4e
api: refactor the market data api (#1569)
ns212 Sep 27, 2023
c6a55d5
Tom/fix prices (#1571)
tomjeatt Sep 27, 2023
e792c22
chore: add vDOT icon and sort imports (#1563)
tomjeatt Sep 27, 2023
1447602
chore: add token icons (#1572)
tomjeatt Sep 28, 2023
aba10b4
chore: release v2.38.2
tomjeatt Sep 28, 2023
6626850
[chore] Update dependencies (#1548)
tomjeatt Sep 28, 2023
724f5a1
chore: remove console log (#1575)
tomjeatt Sep 29, 2023
cce2389
fix: await the unawaited (#1581)
tomjeatt Sep 29, 2023
5954006
chore: release v2.39.0
tomjeatt Sep 29, 2023
f320212
Tom/fix icons (#1584)
tomjeatt Oct 2, 2023
bf5c22b
chore: release v2.39.1
tomjeatt Oct 2, 2023
504391f
apply hotfix patch (#1589)
tomjeatt Oct 16, 2023
6701577
feat: update subwallet logo (#1587)
danielsimao Oct 18, 2023
aeca5b3
fix(Redeem): show premium redeem compensation (#1591)
danielsimao Oct 24, 2023
1e3b759
feat(Wallet): add bitforst token swap link (#1594)
danielsimao Oct 26, 2023
aa12f6c
fix(Loans): collateral overlapping modal ref issue (#1595)
danielsimao Oct 27, 2023
1ac0c7f
feat(Staking): refactor (#1538)
danielsimao Nov 6, 2023
4e9a53b
chore: release v2.40.0
tomjeatt Nov 6, 2023
450d008
chore: bump bridge (#1600)
tomjeatt Nov 14, 2023
fedd584
fix(Staking): close modal on submit (#1599)
danielsimao Nov 16, 2023
353f77e
chore: release v2.40.1
tomjeatt Nov 16, 2023
d8af913
[release] Interlay 2.40.1 (#1603)
tomjeatt Nov 16, 2023
9d98dd5
Peter/fix dex volumes query (#1608)
peterslany Nov 22, 2023
035ad96
fix: subwallet logo (#1606)
danielsimao Nov 28, 2023
49e3d6a
fix: add rewards alert and remove insights (#1607)
danielsimao Dec 1, 2023
e0241cd
update staking labels and format valuers (#1609)
tomjeatt Dec 4, 2023
7aa5545
chore: release v2.40.2
tomjeatt Dec 4, 2023
7128cf6
[release] Interlay 2.40.2 (#1611)
tomjeatt Dec 4, 2023
c98b33e
Feat: expose TVLs fetched via lib as part of api endpoints (#1605)
bvotteler Dec 5, 2023
fa2623e
chore: release v2.41.0
tomjeatt Dec 14, 2023
a709d18
Merge branch 'master' into release/kintsugi/2.41.0
tomjeatt Dec 14, 2023
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
59 changes: 59 additions & 0 deletions api/currency-utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import {
MonetaryAmount,
ExchangeRate,
Bitcoin,
InterBtc,
Interlay,
KBtc,
Kintsugi,
Kusama,
Polkadot
} from '@interlay/monetary-js';
import { isForeignAsset } from "@interlay/interbtc-api";
import Big from "big.js";

const COINGECKO_ID_BY_CURRENCY_TICKER = {
[Bitcoin.ticker]: 'bitcoin',
[Kintsugi.ticker]: 'kintsugi',
[KBtc.ticker]: 'bitcoin',
[Kusama.ticker]: 'kusama',
[Polkadot.ticker]: 'polkadot',
[Interlay.ticker]: 'interlay',
[InterBtc.ticker]: 'bitcoin'
};

const getCoingeckoId = (currency) => {
if (isForeignAsset(currency)) {
// Force V[DOT/KSM] prices.
switch (currency.ticker) {
case 'VDOT':
return 'voucher-dot';
case 'VKSM':
return 'voucher-ksm';
default:
return currency.foreignAsset.coingeckoId;
}
}
return COINGECKO_ID_BY_CURRENCY_TICKER[currency.ticker];
};

const getCoingeckoQueryUrl = (vsId, coingeckoIds) => {
const idsString = coingeckoIds.join(",");
return `https://api.coingecko.com/api/v3/simple/price?vs_currencies=${vsId}&ids=${idsString}`;
};

const getUsdMonetaryAmount = (monetaryAmount, usdPrice) => {
const usdCurrency = {
name: "US Dollar",
decimals: 2,
ticker: "USD",
humanDecimals: 2
};

const rate = new Big(usdPrice);

const xToUsd = new ExchangeRate(monetaryAmount.currency, usdCurrency, rate);
return xToUsd.toCounter(monetaryAmount);
}

export { getCoingeckoId, getCoingeckoQueryUrl, getUsdMonetaryAmount };
Loading
Loading