-
Notifications
You must be signed in to change notification settings - Fork 5
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
wip: LUSD Chicken Bonds Implementation #21
Merged
Merged
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
fd77add
chore: forge init
RickGriff fa8cc84
forge install: ds-test
RickGriff 96c3047
forge install: openzeppelin-contracts
RickGriff c663c1f
Implement createBond functionality
RickGriff 542da78
Implement chickenOut functionality
RickGriff 307f4dd
Implement chickenIn functionality
RickGriff 6e5b2f6
Fix bond cap function
RickGriff 8b94790
Add redemption functionality
RickGriff f51be4c
Move LUSDChickenBonds files into folder
RickGriff 77ebad6
Merge branch 'main' of https://github.com/liquity/ChickenBond
RickGriff befa155
Remove duplicate files
RickGriff 739668b
Add tests for redeem
RickGriff 8116b19
Re-order chickenOut state updates
RickGriff f6b962e
chore: convert ds-test and openzeppelin-contracts to submodules
danielattilasimon 40087c9
Implement shiftLUSDFromSPToCurve, make redemption impact only acquire…
RickGriff 68ac2aa
Implement shiftLUSDFromCurveToSP functionality
RickGriff dc07f81
Make sLUSD Accrual non-linear and implement chickenIn LUSD refund
RickGriff fafa031
Replace 'uint' with 'uint256'
RickGriff 8243b9d
Add non-zero require to functions and add extra tests
RickGriff 673670e
forge install: forge-std
RickGriff e17eb53
Split test setup into mainnet and dev components
RickGriff 94dd839
Integrate Yearn Registry and add share value calc
RickGriff 1e13d5f
Fix NFT minting bug - add totalMinted counter
RickGriff dfd7adc
Fix chickenIn Yearn withdrawal arithmetic
RickGriff 894745e
Fix chickenOut withdrawal arithmetic & add totalMinted tests
RickGriff cee7b9e
Replace shareValue calc with pricePerShare, and fix rounding error bug
RickGriff 4bc5784
Remove redundant test code
RickGriff 1584fc3
Integrate mainnet Curve pool and Yearn Curve vault
RickGriff 742767f
Tweak tests
RickGriff 7377bcc
Extract bond creation test helper
RickGriff d93780b
Fix mock pricePerShare for development tests
RickGriff 6164432
Add missing prank endings in tests
RickGriff 72328c4
Add artificial totalSupply to mock Curve pool
RickGriff 82ea99a
Remove warnings
bingen 2b6ec75
Remove SafeMath from mock contract
bingen 71d5bf0
Make shifting functions revert when crossing the Curve 1.0 price boun…
RickGriff bfca2e3
Merge branch 'lusd_chicken_bonds' of https://github.com/liquity/Chick…
RickGriff 0a2dd22
Remove DS_Store
RickGriff 80ade5d
--no-edit
RickGriff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea | ||
cache/ | ||
out/ | ||
.idea | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "LUSDChickenBonds/lib/ds-test"] | ||
path = LUSDChickenBonds/lib/ds-test | ||
url = https://github.com/dapphub/ds-test | ||
[submodule "LUSDChickenBonds/lib/openzeppelin-contracts"] | ||
path = LUSDChickenBonds/lib/openzeppelin-contracts | ||
url = https://github.com/openzeppelin/openzeppelin-contracts | ||
[submodule "LUSDChickenBonds/lib/forge-std"] | ||
path = LUSDChickenBonds/lib/forge-std | ||
url = https://github.com/brockelmore/forge-std |
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can .gitignore
.DS_Store
too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And solc binary too.