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

Fetch upstream updates #5

Open
wants to merge 361 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
361 commits
Select commit Hold shift + click to select a range
f3dcf3d
veSDL - LP Staking/Unstaking in Gauge UI (#988)
arthur-zhuk Apr 27, 2022
7b00c72
Evmos mainnet FE integration. (#990)
arthur-zhuk Apr 28, 2022
fd5048e
Rewrite usePoolData and Pools page using new providers (#980)
hammeiam Apr 28, 2022
685d3c2
hide Zero SDL per day (#991)
hammeiam Apr 28, 2022
b6faecf
support evmos explorer (#992)
arthur-zhuk Apr 29, 2022
52c5a27
Remove poolStatuses, rewrite useCalcSwapPairs (#987)
hammeiam Apr 29, 2022
695ba0d
Permissionless Pool creation integrated with contract. (#937)
arthur-zhuk Apr 29, 2022
dac7f75
FE integrated
arthur-zhuk Apr 29, 2022
09b799f
Evmos mainnet wBTC/renBTC base pool and tBTC metapool integration (#994)
arthur-zhuk Apr 30, 2022
a748ec3
remove disabled on paused pools (#995)
arthur-zhuk Apr 30, 2022
b91a703
Merge branch 'master' of https://github.com/saddle-finance/saddle-fro…
arthur-zhuk May 2, 2022
0d72a76
multicall for kava testnet added
arthur-zhuk May 2, 2022
d1d434d
small fix according to the spacing (#965)
nkrulikovsky May 2, 2022
7dcffaf
Merge branch 'kavaTestnetInt'
arthur-zhuk May 2, 2022
550877d
Merge branch 'master' of https://github.com/saddle-finance/saddle-fro…
arthur-zhuk May 2, 2022
801fe01
veSDL UI (#989)
nkrulikovsky May 3, 2022
23ff297
Bump cypress-repeat from 2.3.1 to 2.3.2 (#997)
dependabot[bot] May 3, 2022
d56b59f
Front end pull request template (#1002)
nguyenaiden May 10, 2022
270d74c
Gauge Weight Component and Gauge Providers (#1000)
nguyenaiden May 10, 2022
8b37a40
Add dark mode on highchart and center Circular progress (#1007)
nkrulikovsky May 11, 2022
8cf5e8b
Add pool contract address information on PoolInfoCard (#1005)
nkrulikovsky May 12, 2022
8a0f313
Remove LPTOKEN_TO_POOL_MAP and clean up TokenInput (#1011)
hammeiam May 12, 2022
50d0f0d
Remove POOLS_MAP from withdraw flow, replaces symbols with addresses …
hammeiam May 17, 2022
bd484c1
veSDL calculator ui (#1014)
nkrulikovsky May 17, 2022
b3a68cc
Remove POOLS_MAP from 3 more components (#1016)
hammeiam May 17, 2022
004e715
Add Snapshot voting links to veSDL page (#1013)
nguyenaiden May 17, 2022
e519271
Add Gauge Rewards (#1019)
hammeiam May 17, 2022
8736c0e
Metapool V3 FE Integration (#1012)
arthur-zhuk May 18, 2022
ea02d90
minichef pids added (#1023)
arthur-zhuk May 18, 2022
151edd2
Evmos 4 Pool FE Integration (#1017)
arthur-zhuk May 19, 2022
d7b9244
Make better migration estimations (#1027)
nkrulikovsky May 19, 2022
786ccea
Fix withdraw state, which used different tokens and contracts across …
hammeiam May 19, 2022
4f15a21
Updated Evmos 4 pool addrs (#1032)
arthur-zhuk May 20, 2022
2f5afb1
veSDL contract integration (#1001)
nkrulikovsky May 20, 2022
68dec48
Deprecate usePoolTokenBalances (#1033)
hammeiam May 20, 2022
f8876ad
Remove pools_map from thirdPartyIntegations (#1036)
hammeiam May 21, 2022
8c367ea
remove tokens_map from reviewVirtualSwapSettlement (#1040)
hammeiam May 22, 2022
eb7cd13
Remove getPoolByAddress, update Transactions (#1039)
hammeiam May 22, 2022
3598d54
remove parseStringAndTokenToBigNumber (#1038)
hammeiam May 22, 2022
049e01c
Remove tokens_map from 2 more components (#1041)
hammeiam May 23, 2022
b3b5347
Add user gauge rewards (#1031)
hammeiam May 23, 2022
9b1e9ac
Add correct ethcall tryEach types based on canFail (#1046)
hammeiam May 25, 2022
6137128
fix for metaswap tests (#1047)
hammeiam May 25, 2022
1598e72
Speed things up! (#1048)
hammeiam May 25, 2022
bf01797
Refactor rewards (#1037)
hammeiam May 25, 2022
877d54e
Use better type for Object.values for maybe undefined values (#1049)
hammeiam May 25, 2022
03fdcf8
Stake into gauge from My Gauge Farm and Migration into gauge integrat…
arthur-zhuk May 25, 2022
ca1f6e4
Frax 3 Pool (#1030)
arthur-zhuk May 26, 2022
b33b5d0
Evmos Frax 3 Pool (#1053)
arthur-zhuk May 26, 2022
aece689
Add veSDL data (#1054)
hammeiam May 27, 2022
b512af0
Add Frax 3 pool Minichef PID (#1057)
penandlim May 29, 2022
ef9f60c
Add evmos minichef address (#1058)
penandlim May 30, 2022
07ddd53
Fix Withdraw issue (#1060)
nkrulikovsky May 30, 2022
0958b7d
fetch price by address (#1051)
nkrulikovsky May 30, 2022
9565b3d
Nikita/fix network change (#1061)
nkrulikovsky May 31, 2022
8846eb2
Add veSDL holder fee claim (#1055)
hammeiam Jun 1, 2022
bb30b24
Use Partial type, write getter for changeNetwork args (#1064)
hammeiam Jun 1, 2022
c3dff77
Disable days other than Thursday (#1069)
nkrulikovsky Jun 3, 2022
14283f9
Confirm unlock modal (#1071)
nkrulikovsky Jun 8, 2022
ade741c
pin node version in ci (#1076)
hammeiam Jun 9, 2022
ba88cff
penalty percent fix (#1074)
nkrulikovsky Jun 10, 2022
8c35acd
Fetch basicPool data from registry (#1020)
nguyenaiden Jun 13, 2022
e37b332
Claim veSDL Rewards Integration (#1015)
arthur-zhuk Jun 13, 2022
342393b
Add minter contract (#1081)
hammeiam Jun 16, 2022
93ff5c0
Set default lanaguage as en (#1084)
nkrulikovsky Jun 16, 2022
e4eace3
Fix min date (#1085)
nkrulikovsky Jun 16, 2022
b98ea58
Wrong network modal for veSDL page (#1070)
nkrulikovsky Jun 17, 2022
071196a
Add master_registry contract address on evmos (#1090)
nkrulikovsky Jun 18, 2022
6d98a3d
Create Gauge APR Provider (#1086)
hammeiam Jun 20, 2022
1fe1a00
veSDL boost calculator (#1042)
nkrulikovsky Jun 20, 2022
16b56c9
Update withdrawal penalty wording (#1098)
nguyenaiden Jun 20, 2022
a24169f
Locking info link, tooltip, and some variable renames (#1097)
arthur-zhuk Jun 21, 2022
62667a4
Add sdl/weth sushi pool contract to app (#1099)
hammeiam Jun 21, 2022
b2141d6
Adding SDL from gauges to existing retroactive amount. (#1093)
arthur-zhuk Jun 21, 2022
ba8db68
My Gauge Farm conditional UI for LP staked in minichef contracts (#1100)
arthur-zhuk Jun 21, 2022
f06b784
Farm UI (#1101)
nkrulikovsky Jun 21, 2022
940b8a4
Add stake or unstake dialog (#1102)
nkrulikovsky Jun 21, 2022
b2eddbb
Key gauges by lpToken address (#1106)
hammeiam Jun 22, 2022
5ff196e
Add SDL icon & price to header (#1107)
nguyenaiden Jun 22, 2022
5ba5cfc
Update addresses for veSDL contracts deployed on MainNet (#1105)
nguyenaiden Jun 22, 2022
05229d7
feat: get explorer link by chainid (#1108)
0xEapp Jun 22, 2022
e7823a4
Gauge staking contract calls (#1109)
hammeiam Jun 22, 2022
ff792e0
Added approval to token (#1113)
arthur-zhuk Jun 22, 2022
bbf5ebe
Create gauge reward dialog (#1111)
nkrulikovsky Jun 23, 2022
8dc3461
Vesdl calculator fix (#1114)
nkrulikovsky Jun 23, 2022
daae2c1
Updated link to vesdl docs. (#1117)
arthur-zhuk Jun 23, 2022
d9c2de0
showUSDprice to false (#1120)
arthur-zhuk Jun 23, 2022
1909426
better logging, hide empty lp (#1126)
hammeiam Jun 23, 2022
a1da087
Enable veSDL UI (#1112)
hammeiam Jun 23, 2022
924d914
Allow claiming of minichef rewards in token dialog (#1128)
arthur-zhuk Jun 23, 2022
014616b
Display boost multiplier on StakingDialog modal (#1127)
nguyenaiden Jun 24, 2022
4f38c8a
Nikita/vesdl unlock helper fix (#1119)
nkrulikovsky Jun 24, 2022
103b6e9
Update rewardsContract to use .harvest() instead of .deposit() since …
nguyenaiden Jun 24, 2022
ab91e17
Nikita/farm token fix (#1118)
nkrulikovsky Jun 24, 2022
8053e03
VeSDL calculator fix (#1131)
nkrulikovsky Jun 24, 2022
85be694
Add SDL price (#1129)
hammeiam Jun 24, 2022
4b4cf28
Nikita/fix mobile responsive (#1136)
nkrulikovsky Jun 26, 2022
81af581
Farm responsive (#1139)
nkrulikovsky Jun 26, 2022
a0ce5bf
Farm header zInex fix and prevent to close drawer when click account …
nkrulikovsky Jun 27, 2022
01dc63d
Add sdl lock time (#1143)
hammeiam Jun 27, 2022
e97dac2
Fix boost math and decimal (#1140)
nkrulikovsky Jun 27, 2022
850c733
Connect wallet instructions when wallet not connected. (#1144)
arthur-zhuk Jun 27, 2022
beced94
added sdl evmos addr (#1146)
arthur-zhuk Jun 27, 2022
240a4c7
Set viewport height and width (#1145)
nkrulikovsky Jun 28, 2022
dd7191f
Frax Pools Implemented (#1149)
arthur-zhuk Jun 28, 2022
444be58
Make hambugger menu under the 1024 (#1152)
nkrulikovsky Jun 29, 2022
29c5125
Incorrect ChainID set for Optimism sUSD address. (#1155)
arthur-zhuk Jun 30, 2022
42ab460
optional chain access (#1156)
arthur-zhuk Jun 30, 2022
7f63ea9
Fix staking max input (#1161)
hammeiam Jul 1, 2022
2296b8c
Fetch isKIlled info for gauges (#1162)
hammeiam Jul 4, 2022
5c3e44f
Deprecate frax alUSD lpToken and related pools (#1164)
hammeiam Jul 4, 2022
7791529
Filter isKilled gauges from farm list (#1165)
hammeiam Jul 5, 2022
1982944
Fix SLP fetching issue (#1167)
hammeiam Jul 5, 2022
d3286ec
Remove old aleth pool (#1172)
hammeiam Jul 7, 2022
bb9cd1f
Gauge UI Improvements (#1173)
hammeiam Jul 7, 2022
858db2c
useApproveAndDeposit POOLS_MAP removed (#1169)
arthur-zhuk Jul 7, 2022
1f97d3f
removed pools_map from useApproveAndSwap (#1170)
arthur-zhuk Jul 7, 2022
d1de719
USX pool added (#1174)
arthur-zhuk Jul 8, 2022
b145521
token condition fix (#1181)
arthur-zhuk Jul 13, 2022
2aa7c6c
Fix gauge rewards claiming logic (#1177)
hammeiam Jul 13, 2022
753385a
Fix farm sort order (#1175)
hammeiam Jul 13, 2022
3be7d45
kava mainnet and 3pool integrated (#1189)
arthur-zhuk Jul 20, 2022
f4a5ad5
fixed multiscan link and potential coingecko id (#1191)
arthur-zhuk Jul 20, 2022
2f8e583
Support multi chain swap stats (#1166)
hammeiam Jul 22, 2022
8d3a2a1
Introduce Loadables and ExpandedPools (#1193)
hammeiam Jul 25, 2022
5752df8
Removed refs of POOLS_MAP and Tokens with BasicPools/Tokens for the D…
arthur-zhuk Jul 26, 2022
bf1ea69
Fix coingecko id of USX token (#1198)
nkrulikovsky Jul 27, 2022
feead31
Registry migration tokens map refactor (#1183)
arthur-zhuk Jul 28, 2022
7c8a066
Registry migration swap refactor (#1182)
arthur-zhuk Jul 28, 2022
022b263
Miscellaneous POOLS_MAP references removed (#1184)
arthur-zhuk Jul 29, 2022
81c86f8
wait for pools load (#1202)
arthur-zhuk Jul 29, 2022
38bac81
Minichef Reward Pids added to Arb FRAX pools. (#1203)
arthur-zhuk Jul 29, 2022
e105b8d
Coinbase Pay Integration (#1199)
nkrulikovsky Jul 29, 2022
51a1e90
Minichef pids updated for Opt Frax pools. (#1204)
arthur-zhuk Jul 29, 2022
63c41fd
react-query initial bring in with respective upgrades (#1195)
arthur-zhuk Aug 2, 2022
77f12dc
TS Upgrade + corresponding changes for new rules. (#1196)
arthur-zhuk Aug 2, 2022
f915732
Add ramping ends for A parameter (#1201)
nkrulikovsky Aug 2, 2022
524ff8c
Display ethereum pools when there is no metamask. (#1151)
nkrulikovsky Aug 2, 2022
cc60911
kava master registry addr added (#1215)
arthur-zhuk Aug 2, 2022
3d288ed
walletconnect fix w\ Buffer (#1217)
arthur-zhuk Aug 3, 2022
8b8c29f
Update Button text on veSDL confirm modal (#1186)
nkrulikovsky Aug 3, 2022
aa97f84
Add link button (#1218)
nkrulikovsky Aug 3, 2022
c1e0f66
Date Picker alternative patch (#1220)
nguyenaiden Aug 3, 2022
ea5295c
update app id (#1223)
nkrulikovsky Aug 4, 2022
1eb213f
diff void handler call syntax
arthur-zhuk Aug 5, 2022
5a1be3d
Revert "diff void handler call syntax" (#1226)
arthur-zhuk Aug 5, 2022
61678a9
Fixes problem with Claim All click not working (#1227)
arthur-zhuk Aug 5, 2022
65fda11
isMigrated added to condition (#1230)
arthur-zhuk Aug 5, 2022
14914a3
Disable ramp A value and end data when date value is zero (#1229)
nkrulikovsky Aug 7, 2022
76da89b
Lazy load pages, don't store 0 user token bals, object destructuring …
hammeiam Aug 10, 2022
5b7fd29
Calculate SDL earned per day, log in dev (#1231)
hammeiam Aug 10, 2022
0249d35
added minichef pid to fraxbp-usds and arbusdv2 (#1235)
arthur-zhuk Aug 12, 2022
996f129
revert no store zero value change (#1236)
arthur-zhuk Aug 12, 2022
5d4a8a8
Update signers list on risk page (#1237)
hammeiam Aug 12, 2022
e101381
use withdraw if current date is after the unlock date (#1238)
nguyenaiden Aug 12, 2022
899d039
Fix unlocking (#1242)
hammeiam Aug 19, 2022
309687c
Fix hamburger menu (#1244)
nkrulikovsky Aug 29, 2022
be0ad26
check isMetaSwap and revert useTokens to TokenContext (#1252)
arthur-zhuk Sep 7, 2022
1bf1d7b
Add missing PIDs (#1253)
penandlim Sep 7, 2022
9275d03
add rewarder contract for arb frax usds metapool (#1254)
arthur-zhuk Sep 8, 2022
7e04b9c
using correct names (#1255)
arthur-zhuk Sep 8, 2022
a3d2580
Display minichef APRs (#1256)
hammeiam Sep 9, 2022
986ff66
Fix ABI selection, don't use isMigrated (#1247)
hammeiam Sep 12, 2022
eca1a5a
fix broken saddle logo in MetaMask (#1261)
arthur-zhuk Sep 13, 2022
5a6eb40
Fix parts of CI (#1259)
hammeiam Sep 14, 2022
676d214
Remove gaugeToPoolAddress call in Gauges state (#1260)
nguyenaiden Sep 14, 2022
5402846
Fix test fail when high price impact apear (#1262)
nkrulikovsky Sep 15, 2022
a64b1ad
Fix breaking of change account text (#1266)
nkrulikovsky Sep 22, 2022
6630ec1
Fix breaking of change account text; (#1270)
nkrulikovsky Sep 26, 2022
96034a8
Remove CodeCove Annotations on GH Review Page (#1269)
arthur-zhuk Sep 26, 2022
f4d967a
Address Registry React Query Hook (#1268)
nguyenaiden Sep 29, 2022
22b93f9
Create Permissionless Pool Integration (#1245)
arthur-zhuk Oct 6, 2022
11606cb
hide warning nonmainnet
arthur-zhuk Oct 7, 2022
dee6e29
Fix pool ordering (#1283)
arthur-zhuk Oct 7, 2022
69d4dd3
Add ABIs of necessary contracts for crosschain gauges (#1286)
nguyenaiden Oct 12, 2022
e6d479b
Flip on permissionless pools (#1285)
hammeiam Oct 12, 2022
af60efd
hide create pool btn, fix multiple tokens issue (#1288)
arthur-zhuk Oct 13, 2022
27b5429
Hide removed pools (#1290)
hammeiam Oct 21, 2022
950d492
Skeleton components for each pages (#1289)
nkrulikovsky Oct 24, 2022
7f94155
hide btc metapools on arbitrum (#1291)
arthur-zhuk Oct 27, 2022
e50c005
Dev tool (#1296)
nkrulikovsky Nov 1, 2022
14cbdeb
Bump eslint-plugin-jest from 25.7.0 to 27.1.3 (#1294)
dependabot[bot] Nov 1, 2022
231306c
Bump jose from 4.8.3 to 4.10.0 (#1280)
dependabot[bot] Nov 1, 2022
b96920b
Bump @types/jest from 26.0.24 to 29.2.1 (#1297)
dependabot[bot] Nov 1, 2022
34469e9
Bump lint-staged from 10.5.4 to 13.0.3 (#1248)
dependabot[bot] Nov 1, 2022
9472032
Bump @testing-library/react from 11.2.7 to 13.4.0 (#1272)
dependabot[bot] Nov 1, 2022
8a6a733
Withdraw wrapped token from MetaSwap pool (#1292)
nkrulikovsky Nov 7, 2022
beac67f
On-chain vote (#1233)
nkrulikovsky Nov 8, 2022
5427d6b
Replaced BasePool 3 option selection for BasePool Dropdown with entri…
arthur-zhuk Nov 9, 2022
625a4e9
revert input padding on textfieldtheme (#1303)
arthur-zhuk Nov 9, 2022
7bf69e0
enable on-chain voting (#1301)
hammeiam Nov 9, 2022
0b11044
added additional chains to community pools (#1304)
arthur-zhuk Nov 10, 2022
b85e368
Bug fix for withdraw amount (#1306)
nkrulikovsky Nov 15, 2022
7497d8e
Cross chain Gauges (#1287)
nguyenaiden Nov 15, 2022
fbcb03b
TokenClaimDialog rewards patch (#1307)
nguyenaiden Nov 16, 2022
3b2350d
Protec ChildGauge contract call against certain chains. (#1308)
arthur-zhuk Nov 17, 2022
eb3637d
update swap state logic with useQuery (#1305)
nkrulikovsky Nov 17, 2022
82f6922
Mark saddle-approved tokens as safe (#1316)
hammeiam Dec 14, 2022
c2804d2
use '_write' fn for gauges data, update controller abi to view, forma…
hammeiam Dec 20, 2022
a438f91
Turn on x-chain gauges (#1318)
hammeiam Jan 12, 2023
b44d58f
Bump ethcall from 4.8.2 to 4.8.13 (#1323)
dependabot[bot] Jan 12, 2023
e13a50f
add CG pro key (#1327)
hammeiam Jan 13, 2023
7936477
increase poll time (#1328)
hammeiam Jan 13, 2023
be847e5
Fix prices (#1329)
hammeiam Jan 16, 2023
00c8714
Hoist networks to their own file, add aurora (#1331)
hammeiam Feb 2, 2023
6a52d23
Fix gauge claiming (#1334)
hammeiam Feb 6, 2023
83941a4
Bump @typescript-eslint/parser from 5.32.0 to 5.50.0 (#1332)
dependabot[bot] Feb 13, 2023
000b464
Bump ua-parser-js from 1.0.2 to 1.0.33 (#1330)
dependabot[bot] Feb 13, 2023
a7580d4
Bump decode-uri-component from 0.2.0 to 0.2.2 (#1315)
dependabot[bot] Feb 13, 2023
bb9cc8a
Bump @sideway/formula from 3.0.0 to 3.0.1 (#1335)
dependabot[bot] Feb 13, 2023
8bd9722
Log when swap stats is out of date (#1336)
hammeiam Feb 16, 2023
2482b1b
Log staking errors and update walletconnect (#1338)
hammeiam Mar 2, 2023
cfa4cb1
Redirect misnamed pools (#1342)
hammeiam Mar 2, 2023
edeffca
Fix single token withdraws from metapools (#1343)
hammeiam Mar 7, 2023
7afd9b0
updated missing token icon (#1345)
lilPlumberBoy Mar 14, 2023
786dd38
Add link to docs (#1346)
hammeiam Mar 15, 2023
740848b
Added new token icon for fUSDC (#1347)
lilPlumberBoy Mar 20, 2023
aa664c6
Log through dev tool (#1314)
hammeiam Mar 20, 2023
331fb34
Saddle new brand (#1337)
nkrulikovsky Mar 21, 2023
c846b04
update audits
alphastorm Mar 21, 2023
702260f
Update favicon with dark saddle log (#1349)
nkrulikovsky Mar 21, 2023
4ee5033
hide gauges with 0 reward rates, switch out API key (#1350)
hammeiam Mar 28, 2023
3694893
fixed casing of fusdc svg file (#1351)
lilPlumberBoy Mar 31, 2023
f3151d9
Fix oracle addresses (#1354)
hammeiam Apr 6, 2023
ab6d3ff
Link to L2D4 staking. Don't use USD price for swap price impact. (#1358)
hammeiam Apr 12, 2023
0f20d65
multi-reward gauge improvements (#1359)
hammeiam Apr 13, 2023
ae85214
Bump @tanstack/react-query from 4.0.10 to 4.28.0 (#1352)
dependabot[bot] Apr 18, 2023
4699cf3
Bump webpack from 5.74.0 to 5.78.0 (#1356)
dependabot[bot] Apr 18, 2023
490ed22
Bump date-fns from 2.29.1 to 2.29.3 (#1340)
dependabot[bot] Apr 18, 2023
c625a33
First pass at fusdc unstaking (#1360)
hammeiam Apr 27, 2023
f79e4d5
hide dead fUSDC gauge rewards (#1361)
hammeiam Apr 27, 2023
5d8ce08
Use token decimals for reward display (#1362)
hammeiam Apr 27, 2023
93f1d69
Show sdl rewards on outdated fusdc gauge (#1365)
hammeiam May 2, 2023
7e87314
Bump @testing-library/jest-dom from 5.16.4 to 5.16.5 (#1364)
dependabot[bot] May 2, 2023
e30f574
hide fusdc deprecated gauges from vote (#1367)
hammeiam May 5, 2023
c9f9104
fix one token withdraw, correct apy display (#1368)
hammeiam May 7, 2023
2c8224a
Bump husky from 7.0.4 to 8.0.3 (#1363)
dependabot[bot] May 8, 2023
a9d23ea
Bump minimatch and recursive-readdir (#1369)
dependabot[bot] May 10, 2023
6308835
Rainbowkit integration (#1378)
nkrulikovsky Jun 2, 2023
5ceb75c
Fix registry address dep (#1382)
hammeiam Jun 6, 2023
83f9426
Fix connector url (#1383)
hammeiam Jun 13, 2023
f9028e9
add WC PID (#1381)
hammeiam Jun 27, 2023
599a905
update coingecko api key (#1388)
alphastorm Aug 3, 2023
e8ac298
add banner for the protocol winddown (#1389)
alphastorm Aug 15, 2023
b71c27f
only allow combo withdrawals since pools are paused
alphastorm Sep 12, 2023
5b44a67
display an alert to withdraw using combo
alphastorm Oct 20, 2023
0caeea2
update sentry deps
alphastorm Nov 14, 2023
fc16658
chore: misc updates and bug fixes
alphastorm Dec 29, 2024
351e320
fix: postcss
alphastorm Dec 29, 2024
a09dd34
fix: serve swap-stats.json from github
alphastorm Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions .bundlemonrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"baseDir": "build",
"files": [
{
"path": "index.html"
},
{
"path": "**/*.<hash>.chunk.{js,css}"
}
],
"groups": [
{
"path": "**/*.<hash>.{png,jpg,gif,svg}"
},
{
"path": "**/*.<hash>.{eot,ttf,woff,woff2}"
}
],
"reportOutput": [
[
"github",
{
"checkRun": true,
"commitStatus": true,
"prComment": false
}
]
]
}
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
REACT_APP_GOOGLE_ANALYTICS_MEASUREMENT_ID="G-8JBQYLS8HB"
REACT_APP_NETWORK_URL="https://mainnet.infura.io/v3/28e6f2ed0e5747e6bef772f27372f62d"
REACT_APP_INFURA_API_KEY="28e6f2ed0e5747e6bef772f27372f62d"
13 changes: 10 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"extends": [
"eslint:recommended",
Expand Down Expand Up @@ -30,8 +29,16 @@
"rules": {
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/ban-ts-comment": "off",
"no-invalid-this": 0,
"no-unused-vars": "off",
"sort-imports": "error"
}
},
"overrides": [
{
"files": ["*.ts", "*.mts", "*.cts", "*.tsx", "**/*.stories.*"],
"rules": {
"no-undef": "off",
"import/no-anonymous-default-export": "off"
}
}
]
}
106 changes: 56 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,72 +7,68 @@ on:
branches: [master]

jobs:
lint:
build:
runs-on: ubuntu-latest

env:
REACT_APP_NOTIFY_DAPP_ID: ${{ secrets.REACT_APP_NOTIFY_DAPP_ID }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/setup-node@v2
with:
node-version: "12"
node-version: "16.15.0"
cache: "npm"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://[email protected]/'
- run: npm ci
- run: npm run build --if-present
- name: Run BundleMon
run: npm run bundlemon
env:
BUNDLEMON_PROJECT_ID: 62325f451d1b50bea48f41fb
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}} # important!
# Keeping in case we ever want to save build artifacts
# - name: Zip artifact
# run: zip build-artifact -r ./build
# - uses: actions/upload-artifact@v3
# with:
# name: build-artifact
# path: ./build-artifact.zip
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.15.0"
cache: "npm"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://[email protected]/'
- run: npm ci
- run: npm run lint

test:
runs-on: ubuntu-latest

env:
REACT_APP_NOTIFY_DAPP_ID: ${{ secrets.REACT_APP_NOTIFY_DAPP_ID }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "12"
node-version: "16.15.0"
cache: "npm"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://[email protected]/'
- run: npm ci
- run: npm run build --if-present
- run: npm test
env:
CI: true

coverage:
runs-on: ubuntu-latest

env:
REACT_APP_NOTIFY_DAPP_ID: ${{ secrets.REACT_APP_NOTIFY_DAPP_ID }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "12"
node-version: "16.15.0"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://[email protected]/'
- run: npm ci
- run: npm run build --if-present
- run: npm test -- --coverage
env:
CI: true
Expand All @@ -81,26 +77,31 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

coverage-cypress:
env:
REACT_APP_NOTIFY_DAPP_ID: ${{ secrets.REACT_APP_NOTIFY_DAPP_ID }}
runs-on: ubuntu-latest
services:
saddle-contract:
image: saddlefinance/contracts:latest
ports:
- 8545:8545

env:
REACT_APP_NOTIFY_DAPP_ID: ${{ secrets.REACT_APP_NOTIFY_DAPP_ID }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/setup-node@v2
node-version: "16.15.0"
cache: "npm"
- name: Cache Cypress
id: cache-cypress
uses: actions/cache@v3
with:
node-version: "12"
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - uses: actions/download-artifact@v2
# with:
# name: build-artifact
# - name: Unzip artifact
# run: unzip -qq build-artifact.zip -d .
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://[email protected]/'
- run: npm ci
Expand All @@ -111,3 +112,8 @@ jobs:
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: E2E Failures
path: cypress/screenshots/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.ignore

# typechain
types/ethers-contracts

# vscode
.vscode
.vscode/settings.json

# idea
.idea
18 changes: 12 additions & 6 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/sh
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename "$0")"
readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
Expand All @@ -17,14 +19,18 @@ if [ -z "$husky_skip_init" ]; then
. ~/.huskyrc
fi

export readonly husky_skip_init=1
readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
exit $exitCode
fi

exit 0
if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
31 changes: 4 additions & 27 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
const path = require("path")

const toPath = (_path) => path.join(process.cwd(), _path)

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
],
webpackFinal: async (config) => {
return {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
"@emotion/core": toPath("node_modules/@emotion/react"),
"emotion-theming": toPath("node_modules/@emotion/react"),
},
},
}
},
}
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
framework: "@storybook/react",
}
31 changes: 0 additions & 31 deletions .storybook/preview-head.html

This file was deleted.

20 changes: 20 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Divider, Paper, Typography } from "@mui/material"
import StoryLayout from "./story-layout"

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}

export const decorators = [
(Story) => (
<div>
<StoryLayout>{Story()}</StoryLayout>
</div>
),
]
Loading