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

Feat lp locking #141

Merged
merged 102 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
a20c779
...
subject026 Sep 17, 2024
395a2a5
...
subject026 Sep 17, 2024
2569bc4
lp vault state machine
subject026 Oct 4, 2024
d9686db
withdraw tx logic
subject026 Oct 12, 2024
a105ffe
Merge branch 'development' into feat-lp-locking
subject026 Oct 12, 2024
3e0bf14
Merge branch 'development' into feat-lp-locking
subject026 Oct 12, 2024
dad343a
add new tx dispatch to allowance flow
subject026 Oct 12, 2024
581b4cf
LP voting power page styling
subject026 Oct 14, 2024
957b4d0
LP vault page styling
subject026 Oct 14, 2024
bb26a72
remove current SC version
subject026 Oct 17, 2024
a52e5d0
forge install: breadchain
subject026 Oct 17, 2024
f5b2dba
label governance link when on sub routes
subject026 Oct 19, 2024
7ee9575
update distributor ABI
subject026 Oct 19, 2024
3da87b2
add modal graphics
subject026 Oct 20, 2024
a9bcb00
Merge branch 'development' into feat-lp-locking
subject026 Oct 23, 2024
173fc53
update contract version
subject026 Oct 23, 2024
d3a4c17
add anvil explorer url
subject026 Oct 23, 2024
22ef874
modal ui components
subject026 Oct 23, 2024
0cac4ee
improve module naming
subject026 Oct 24, 2024
2a6bc44
add withdraw success component
subject026 Oct 24, 2024
eddda92
Implements VotingPowerPanel with placeholder values
Oct 25, 2024
72a722c
add gradient border component
subject026 Oct 31, 2024
8946c80
make "use max" button reusable
subject026 Oct 31, 2024
2d3888d
add lp token metadata map
subject026 Oct 31, 2024
b3606e0
fix text color
subject026 Oct 31, 2024
77c38ac
fix button text size
subject026 Oct 31, 2024
abb1864
vault page layout
subject026 Oct 31, 2024
604fe91
clear input value when tx is confirmed
subject026 Nov 2, 2024
e194489
Merge branch 'development' into feat-lp-locking
subject026 Nov 5, 2024
3655bbf
adjust page wrap/padding
subject026 Nov 5, 2024
b0a8ff5
add token amount formatting
subject026 Nov 8, 2024
d4e11df
layout adjustments
subject026 Nov 8, 2024
b59f6ac
merge development branch
subject026 Nov 11, 2024
ad7b289
format locked tokens value
subject026 Nov 11, 2024
f3570ae
fix svg attributes
subject026 Nov 11, 2024
3955c60
token amount display adjustments
subject026 Nov 14, 2024
e291731
adjust page grid
subject026 Nov 14, 2024
87209c8
fix link behavior
subject026 Nov 15, 2024
bea930c
remove console log
subject026 Nov 15, 2024
fd56746
fix svg attributes
subject026 Nov 15, 2024
a315151
correct element nesting
subject026 Nov 15, 2024
6a8d0ef
ensure correct element nesting
subject026 Nov 15, 2024
a435cf9
unused import
subject026 Nov 15, 2024
a5ee0f5
add curve pool link
subject026 Nov 15, 2024
839291a
fix text wrapping issue
subject026 Nov 15, 2024
001d10f
lightmode styles
subject026 Nov 16, 2024
eadb934
add spinner to modal
subject026 Nov 16, 2024
4a73254
update dev fixtures
subject026 Nov 17, 2024
944758e
sync with updated ABI
subject026 Nov 17, 2024
c0c8473
new hooks for VP panel
subject026 Nov 17, 2024
62b5dff
render VP from bread
subject026 Nov 17, 2024
d9b27ca
add type assert
subject026 Nov 17, 2024
a24068b
layout adjustments
subject026 Nov 17, 2024
0046df0
lock LP tokens in dev fixtures
subject026 Nov 18, 2024
d4797a9
dev fixtures
subject026 Nov 18, 2024
dbbe5ca
export lp address as constant
subject026 Nov 18, 2024
c2457cb
new hook to fetch VP
subject026 Nov 18, 2024
feb57a3
wip
subject026 Nov 18, 2024
98257b4
add prod contract addresses
subject026 Nov 18, 2024
d6712ad
try wider gradient border
subject026 Nov 18, 2024
b2e2980
try pixel value
subject026 Nov 18, 2024
8fc5e1f
Merge branch 'development' into feat-lp-locking
subject026 Nov 19, 2024
e1c63c8
add approve tx
subject026 Nov 19, 2024
d452b8a
fixture script cleanup
subject026 Nov 20, 2024
5d7fb07
mock getVotingPowerForPeriod
subject026 Nov 20, 2024
05f9a6a
distribute yield
subject026 Nov 20, 2024
8de412a
render vp values
subject026 Nov 21, 2024
6c23ff8
wip
subject026 Nov 22, 2024
44cda89
Merge branch 'development' into feat-lp-locking
subject026 Nov 22, 2024
853cec3
fix imports
subject026 Nov 22, 2024
6561d20
fix type errors
subject026 Nov 24, 2024
279d12d
use new vp context in gov page
subject026 Nov 24, 2024
b3608f8
remove msw
subject026 Nov 24, 2024
4cfd9ed
rm msw provider
subject026 Nov 24, 2024
09afa1e
hide lp vaults behind feature flag
subject026 Nov 24, 2024
4066270
rm dead code
subject026 Nov 24, 2024
1742944
adjust padding
subject026 Nov 24, 2024
5b4d567
layout adjustments
subject026 Nov 24, 2024
b68c2a4
fix attribute casing
subject026 Nov 25, 2024
0f50e94
fetch & render pending VP
subject026 Nov 25, 2024
80b0979
tidy up abis
subject026 Nov 25, 2024
0f828f3
extend dev cycle length
subject026 Nov 25, 2024
f426501
Merge branch 'development' into feat-lp-locking
subject026 Nov 26, 2024
e39f22f
rename lp token in config
subject026 Nov 28, 2024
14af238
reuse existing hook
subject026 Nov 28, 2024
8a16d6a
reuse existing hook
subject026 Nov 28, 2024
37215ff
share locked token balance via context
subject026 Nov 28, 2024
3c56c31
remove unused imports
subject026 Nov 28, 2024
9a8be27
fix lp token name
subject026 Nov 28, 2024
580c866
remove console log
subject026 Nov 28, 2024
9e1f97d
unused variable
subject026 Nov 28, 2024
96a54a0
missing butter address causing build to fail
subject026 Nov 28, 2024
f5b4f75
dead code
subject026 Nov 28, 2024
0baa794
add context
subject026 Nov 29, 2024
8bea68e
remove power icon
subject026 Nov 29, 2024
c758ee3
add vp tooltip info
subject026 Dec 2, 2024
4ac72ec
vp tooltiop info
subject026 Dec 2, 2024
4a66c69
Merge branch 'feat-lp-locking' of github.com:BreadchainCoop/crowdstak…
subject026 Dec 2, 2024
67acb4c
remove power icon
subject026 Nov 29, 2024
b1a5d9e
Merge branch 'feat-lp-locking' of github.com:BreadchainCoop/crowdstak…
subject026 Dec 2, 2024
e923ab1
lightmode fixes
subject026 Dec 2, 2024
060f2a2
rename page titles
subject026 Dec 2, 2024
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
1 change: 1 addition & 0 deletions bread.theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const colors = {
300: "#E873D3",
400: "#A416AD",
500: "#D04EC5",
600: "#F5E8F6",
},
status: {
danger: "#D8745C",
Expand Down
2 changes: 1 addition & 1 deletion contracts/script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract Deploy is Script {
// Distributor Config
address _bread = address(0xa555d5344f6FB6c65da19e403Cb4c1eC4a1a5Ee3);
uint256 _minRequiredVotingPower = 5;
uint256 _cycleLength = 518400;
uint256 _cycleLength = 5;
uint256 _maxPoints = 10000;
uint256 _precision = 1000000000000000000;
uint256 _yieldFixedSplitDivisor = 2;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve": "serve out",
"deploy": "npm install -g [email protected] && pnpm install --prod=true --frozen-lockfile && pnpm run build",
"chain:start": "anvil --fork-url https://rpc.gnosis.gateway.fm --chain-id 31337 --block-time 5",
"chain:setup": "tsx scripts/setup.ts && cd contracts && forge script script/Deploy.s.sol:Deploy --broadcast --rpc-url http://localhost:8545 --private-key 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6 --legacy",
"chain:setup": "NODE_ENV=development tsx scripts/setupPreDeploy.ts && cd contracts && forge script script/Deploy.s.sol:Deploy --broadcast --rpc-url http://localhost:8545 --private-key 0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6 --legacy && cd .. && NODE_ENV=development tsx scripts/setupPostDeploy.ts",
"lint": "next lint",
"find-deadcode": "ts-prune | grep -v '(used in module)'"
},
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/wxdai_bread_lp_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/wxdai_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions scripts/bakeDevBread.ts

This file was deleted.

34 changes: 0 additions & 34 deletions scripts/checkYield.ts

This file was deleted.

28 changes: 0 additions & 28 deletions scripts/createCheckpoint.ts

This file was deleted.

63 changes: 0 additions & 63 deletions scripts/fundWallet.js

This file was deleted.

38 changes: 0 additions & 38 deletions scripts/getDistributions.ts

This file was deleted.

Loading