Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
9a52770
feat: paraswap feature updates (#1218)
defispartan Oct 11, 2022
6e60d57
feat: re-add missing tooltips
defispartan Oct 11, 2022
0bfe7ae
feat: handle swapping to asset with no incentives
defispartan Oct 11, 2022
52c0c6c
feat: include collateral repay tests
Oct 12, 2022
7fd7321
Merge branch 'main' into feat/clean-paraswap-feature-update
grothem Oct 12, 2022
2088be7
chore: automated cache update [skip cypress]
Oct 12, 2022
81f5f78
chore: add aip end date (#1220)
Oct 12, 2022
6d7bb04
chore: automated cache update [skip cypress]
Oct 13, 2022
d5c1dd2
chore(i18n): synchronize translations from crowdin [skip cypress]
Oct 13, 2022
672813c
chore: automated cache update [skip cypress]
Oct 13, 2022
d021259
chore: automated cache update [skip cypress]
Oct 13, 2022
85abcf7
chore: automated cache update [skip cypress]
Oct 13, 2022
51e60bc
Add label with fork pr pipeline result (#1108)
marcPineiroAave Oct 13, 2022
3ccf47b
chore: automated cache update [skip cypress]
Oct 13, 2022
4c48b4d
feat: v3 rate history (#1210)
defispartan Oct 13, 2022
753566c
chore(deps): bump @mui/material from 5.10.8 to 5.10.9 (#1235)
dependabot[bot] Oct 13, 2022
8f4364c
chore(deps): bump @aave/contract-helpers from 1.5.1 to 1.7.1 (#1236)
dependabot[bot] Oct 13, 2022
fb5a84c
ci: make IPFS pin failures more visible (#1240)
Oct 13, 2022
f6b2670
chore: automated cache update [skip cypress]
Oct 13, 2022
2770e3e
fix: graph initial load error (#1241)
grothem Oct 13, 2022
eb0c541
chore: automated cache update [skip cypress]
Oct 13, 2022
24bedd2
chore: automated cache update [skip cypress]
Oct 13, 2022
d429a4d
chore: automated cache update [skip cypress]
Oct 14, 2022
c0b8aaf
chore(i18n): synchronize translations from crowdin [skip cypress]
Oct 14, 2022
7da04da
chore: automated cache update [skip cypress]
Oct 14, 2022
30fda77
chore: automated cache update [skip cypress]
Oct 14, 2022
c9fcaae
chore: automated cache update [skip cypress]
Oct 14, 2022
64c668e
chore: automated cache update [skip cypress]
Oct 14, 2022
fe83601
chore: automated cache update [skip cypress]
Oct 14, 2022
2f7de4d
chore: automated cache update [skip cypress]
Oct 14, 2022
d181abf
fix: use correct aave price on amm market (#1245)
defispartan Oct 14, 2022
329a088
chore: automated cache update [skip cypress]
Oct 14, 2022
e862e6e
chore: bump utils (#1248)
defispartan Oct 14, 2022
2301512
chore: automated cache update [skip cypress]
Oct 15, 2022
6410f27
chore: automated cache update [skip cypress]
Oct 15, 2022
73a4e9e
chore: automated cache update [skip cypress]
Oct 15, 2022
cf2b564
chore: automated cache update [skip cypress]
Oct 15, 2022
9ac9fac
chore: automated cache update [skip cypress]
Oct 15, 2022
281585c
chore: automated cache update [skip cypress]
Oct 15, 2022
4d4eaf8
chore: automated cache update [skip cypress]
Oct 15, 2022
f555108
chore: automated cache update [skip cypress]
Oct 15, 2022
a4a3795
chore: automated cache update [skip cypress]
Oct 16, 2022
1e441c2
chore: automated cache update [skip cypress]
Oct 16, 2022
9f084a3
chore: automated cache update [skip cypress]
Oct 16, 2022
ab52191
chore: automated cache update [skip cypress]
Oct 16, 2022
0ad2dfd
chore: automated cache update [skip cypress]
Oct 16, 2022
8e61a01
chore: automated cache update [skip cypress]
Oct 17, 2022
a5b2657
chore: automated cache update [skip cypress]
Oct 17, 2022
b44c0c0
chore: automated cache update [skip cypress]
Oct 18, 2022
df38f94
chore: automated cache update [skip cypress]
Oct 18, 2022
e07b3af
chore: automated cache update [skip cypress]
Oct 18, 2022
d484b98
chore: automated cache update [skip cypress]
Oct 18, 2022
0d237f4
chore: automated cache update [skip cypress]
Oct 18, 2022
4c5a17d
chore: automated cache update [skip cypress]
Oct 18, 2022
500378c
Merge branch 'main' into feat/clean-paraswap-feature-update
grothem Oct 18, 2022
513194c
fix: factor supply apy in on exact in and normalize the returned amount
grothem Oct 18, 2022
aa355d1
feat: add skeleton state to price impact
defispartan Oct 18, 2022
027d44f
feat: add loading state to asset input
defispartan Oct 18, 2022
89ade00
feat: add skeleton state to transaction details
defispartan Oct 18, 2022
d55e77b
feat: apply loading states to collateral swap
defispartan Oct 18, 2022
7069a9d
feat: apply loading states to repay with collateral
defispartan Oct 18, 2022
56738bf
chore: i18n
defispartan Oct 18, 2022
846b75b
Merge branch 'feat/clean-paraswap-feature-update' of https://github.c…
defispartan Oct 18, 2022
4f99f0b
Merge branch 'main' into feat/clean-paraswap-feature-update
defispartan Oct 18, 2022
b66eb18
feat: add fetching data button state
defispartan Oct 19, 2022
87eb91c
fix: collateral tests for avalanche
Oct 19, 2022
9023dc0
fix: calculation for collateral amount required to cover debt
grothem Oct 24, 2022
92716eb
Merge branch 'main' into feat/clean-paraswap-feature-update
defispartan Oct 24, 2022
8991875
fix: show usd value when using exactIn logic
grothem Oct 25, 2022
9548415
Merge branch 'main' into feat/clean-paraswap-feature-update
grothem Nov 1, 2022
dd85d43
chore: merge
grothem Nov 1, 2022
6824b2a
fix: remove unused prop
grothem Nov 1, 2022
8bf7b32
Merge branch 'main' into feat/clean-paraswap-feature-update
defispartan Nov 22, 2022
c95b214
fix: amount after repay usd
defispartan Nov 23, 2022
77b8e00
fix: paraswap route blacklist (#1297)
defispartan Dec 1, 2022
fae7b61
fix: adjusted early exit condition
grothem Dec 1, 2022
0a86f24
fix: don't refetch route on error
grothem Dec 1, 2022
c484c00
fix: handle initial loading of route, removed min received calc from …
grothem Dec 1, 2022
932dde0
fix: minor cleanup
grothem Dec 7, 2022
745ef79
Merge branch 'main' into feat/clean-paraswap-feature-update
grothem Dec 7, 2022
5da61df
fix: show paraswap errors in repay modal
grothem Dec 7, 2022
eaa91a2
fix: design updates
grothem Dec 9, 2022
54ff901
fix: don't refetch route on a timer
grothem Dec 9, 2022
6cdecae
Merge branch 'main' into feat/clean-paraswap-feature-update
grothem Dec 9, 2022
213891b
fix: use flash loan
grothem Dec 12, 2022
aa5d82c
fix: handle gas estimation and error states
grothem Dec 13, 2022
32832d0
feat: upgrade paraswap sdk, add in partnerAddress
grothem Dec 13, 2022
032a4b2
fix: pulled out const for fee claimer address
grothem Dec 13, 2022
8b44523
test(fix): fix e-mode for polygon
MareskoY Dec 14, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ const testData = {
hasApproval: true,
repayOption: constants.repayType.default,
},
// {
// asset: assets.aaveMarket.DAI,
// apyType: constants.apyType.stable,
// amount: 10,
// hasApproval: false,
// repayOption: constants.repayType.collateral,
// assetForRepay: assets.aaveMarket.BAT,
// },
{
asset: assets.aaveMarket.DAI,
apyType: constants.apyType.stable,
amount: 10,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.aaveMarket.DAI,
Expand All @@ -81,7 +80,6 @@ const testData = {
type: constants.dashboardTypes.deposit,
assetName: assets.aaveMarket.DAI.shortName,
wrapped: assets.aaveMarket.DAI.wrapped,
// amount: 30,
amount: 40,
collateralType: constants.collateralType.isCollateral,
isCollateral: true,
Expand All @@ -90,8 +88,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.aaveMarket.DAI.shortName,
wrapped: assets.aaveMarket.DAI.wrapped,
// amount: 80,
amount: 90,
amount: 80,
apyType: constants.borrowAPYType.stable,
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ const testData = {
hasApproval: true,
repayOption: constants.repayType.default,
},
// {
// asset: assets.aaveMarket.REN,
// apyType: constants.apyType.stable,
// amount: 20,
// hasApproval: false,
// repayOption: constants.repayType.collateral,
// assetForRepay: assets.aaveMarket.BAT,
// },
{
asset: assets.aaveMarket.REN,
apyType: constants.apyType.stable,
amount: 20,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.aaveMarket.REN,
Expand All @@ -81,7 +80,6 @@ const testData = {
type: constants.dashboardTypes.deposit,
assetName: assets.aaveMarket.REN.shortName,
wrapped: assets.aaveMarket.REN.wrapped,
// amount: 60,
amount: 80,
collateralType: constants.collateralType.isCollateral,
isCollateral: true,
Expand All @@ -90,8 +88,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.aaveMarket.REN.shortName,
wrapped: assets.aaveMarket.REN.wrapped,
// amount: 160,
amount: 180,
amount: 160,
apyType: constants.borrowAPYType.stable,
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ const testData = {
hasApproval: true,
repayOption: constants.repayType.default,
},
// {
// asset: assets.aaveMarket.TUSD,
// apyType: constants.apyType.stable,
// amount: 10,
// hasApproval: false,
// repayOption: constants.repayType.collateral,
// assetForRepay: assets.aaveMarket.TUSD,
// },
{
asset: assets.aaveMarket.TUSD,
apyType: constants.apyType.stable,
amount: 10,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.aaveMarket.TUSD,
Expand All @@ -81,7 +80,6 @@ const testData = {
type: constants.dashboardTypes.deposit,
assetName: assets.aaveMarket.TUSD.shortName,
wrapped: assets.aaveMarket.TUSD.wrapped,
// amount: 30,
amount: 40,
collateralType: constants.collateralType.isCollateral,
isCollateral: true,
Expand All @@ -90,8 +88,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.aaveMarket.TUSD.shortName,
wrapped: assets.aaveMarket.TUSD.wrapped,
// amount: 80,
amount: 90,
amount: 80,
apyType: constants.borrowAPYType.stable,
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ const testData = {
hasApproval: true,
repayOption: constants.repayType.default,
},
// {
// asset: assets.aaveMarket.USDC,
// apyType: constants.apyType.stable,
// amount: 10,
// hasApproval: false,
// repayOption: constants.repayType.collateral,
// assetForRepay: assets.aaveMarket.USDC,
// },
{
asset: assets.aaveMarket.USDC,
apyType: constants.apyType.stable,
amount: 10,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.aaveMarket.USDC,
Expand All @@ -81,7 +80,6 @@ const testData = {
type: constants.dashboardTypes.deposit,
assetName: assets.aaveMarket.USDC.shortName,
wrapped: assets.aaveMarket.USDC.wrapped,
// amount: 30,
amount: 40,
collateralType: constants.collateralType.isCollateral,
isCollateral: true,
Expand All @@ -90,8 +88,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.aaveMarket.USDC.shortName,
wrapped: assets.aaveMarket.USDC.wrapped,
// amount: 80,
amount: 90,
amount: 80,
apyType: constants.borrowAPYType.stable,
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ const testData = {
hasApproval: true,
repayOption: constants.repayType.default,
},
// {
// asset: assets.aaveMarket.USDT,
// apyType: constants.apyType.stable,
// amount: 10,
// hasApproval: false,
// repayOption: constants.repayType.collateral,
// assetForRepay: assets.aaveMarket.USDT,
// },
{
asset: assets.aaveMarket.USDT,
apyType: constants.apyType.stable,
amount: 10,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.aaveMarket.USDT,
Expand All @@ -88,7 +87,6 @@ const testData = {
type: constants.dashboardTypes.deposit,
assetName: assets.aaveMarket.USDT.shortName,
wrapped: assets.aaveMarket.USDT.wrapped,
// amount: 30,
amount: 40,
collateralType: constants.collateralType.isCollateral,
isCollateral: false,
Expand All @@ -97,8 +95,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.aaveMarket.USDT.shortName,
wrapped: assets.aaveMarket.USDT.wrapped,
// amount: 80,
amount: 90,
amount: 80,
apyType: constants.borrowAPYType.stable,
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,22 @@ const testData = {
amount: 10,
hasApproval: false,
},
repay: {
asset: assets.polygonMarket.USDC,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
repay: [
{
asset: assets.polygonMarket.USDC,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
{
asset: assets.polygonMarket.USDC,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.polygonMarket.USDC,
isCollateral: true,
Expand All @@ -50,7 +59,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.polygonMarket.USDC.shortName,
wrapped: assets.polygonMarket.USDC.wrapped,
amount: 23.0,
amount: 21.0,
apyType: constants.borrowAPYType.variable,
},
],
Expand All @@ -64,7 +73,9 @@ describe('USDC INTEGRATION SPEC, POLYGON V2 MARKET', () => {
supply(testData.depositBaseAmount, skipTestState, true);
borrow(testData.testCases.borrow, skipTestState, true);
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
});
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ const testData = {
amount: 10,
hasApproval: false,
},
repay: {
asset: assets.polygonMarket.USDT,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
repay: [
{
asset: assets.polygonMarket.USDT,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
{
asset: assets.polygonMarket.USDT,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.polygonMarket.USDT,
isCollateral: false,
Expand All @@ -57,7 +66,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.polygonMarket.USDT.shortName,
wrapped: assets.polygonMarket.USDT.wrapped,
amount: 23.0,
amount: 21.0,
apyType: constants.borrowAPYType.variable,
},
],
Expand All @@ -71,7 +80,9 @@ describe('USDT INTEGRATION SPEC, POLYGON MARKET', () => {
supply(testData.depositBaseAmount, skipTestState, true);
borrow(testData.testCases.borrow, skipTestState, true);
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
changeBorrowTypeBlocked(testData.testCases.checkDisabledCollateral, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ const testData = {
amount: 10,
hasApproval: false,
},
repay: {
asset: assets.avalancheMarket.USDC,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
repay: [
{
asset: assets.avalancheMarket.USDC,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
{
asset: assets.avalancheMarket.USDC,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.avalancheMarket.USDC,
isCollateral: true,
Expand All @@ -57,7 +66,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.avalancheMarket.USDC.shortName,
wrapped: assets.avalancheMarket.USDC.wrapped,
amount: 23.0,
amount: 21.0,
apyType: constants.borrowAPYType.variable,
},
],
Expand All @@ -71,7 +80,9 @@ describe('USDC INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
supply(testData.depositBaseAmount, skipTestState, true);
borrow(testData.testCases.borrow, skipTestState, true);
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
dashboardAssetValuesVerification(testData.verifications.finalDashboard, skipTestState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@ const testData = {
amount: 10,
hasApproval: false,
},
repay: {
asset: assets.avalancheMarket.USDT,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
repay: [
{
asset: assets.avalancheMarket.USDT,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: true,
repayOption: constants.repayType.default,
},
{
asset: assets.avalancheMarket.USDT,
apyType: constants.apyType.variable,
amount: 2,
hasApproval: false,
repayOption: constants.repayType.collateral,
},
],
withdraw: {
asset: assets.avalancheMarket.USDT,
isCollateral: false,
Expand Down Expand Up @@ -62,7 +71,7 @@ const testData = {
type: constants.dashboardTypes.borrow,
assetName: assets.avalancheMarket.USDT.shortName,
wrapped: assets.avalancheMarket.USDT.wrapped,
amount: 23.0,
amount: 21.0,
apyType: constants.borrowAPYType.variable,
},
],
Expand All @@ -76,7 +85,9 @@ describe('USDT INTEGRATION SPEC, AVALANCHE V2 MARKET', () => {
supply(testData.depositBaseAmount, skipTestState, true);
borrow(testData.testCases.borrow, skipTestState, true);
supply(testData.testCases.deposit, skipTestState, true);
repay(testData.testCases.repay, skipTestState, false);
testData.testCases.repay.forEach((repayCase) => {
repay(repayCase, skipTestState, false);
});
withdraw(testData.testCases.withdraw, skipTestState, false);
switchApyBlocked(testData.testCases.checkDisabledApy, skipTestState);
changeBorrowTypeBlocked(testData.testCases.checkBorrowTypeBlocked, skipTestState);
Expand Down
Loading