-
Notifications
You must be signed in to change notification settings - Fork 4
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: Project A #12
Draft
sakulstra
wants to merge
30
commits into
main
Choose a base branch
from
pa
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
wip: Project A #12
Conversation
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
fix: fix multi rewards tests
* feat: cleanup * fix: remove obsolete things
* feat: use upgradable contracts * fix: add todo
* feat: add pausability * fix: check pausable * fix: add mssing tests * fix: add transfer test * fix: remove now obsolete interface * Delete src/contracts/interfaces/IStaticATokenLM.sol
* chore: upgrade helpers * fix: upgrade to origin
* erc-4626 draft-ready * Fixed rounding + removed named returns * moved converting to internal functions --------- Co-authored-by: Pavel Menshikov <[email protected]>
* added OZ erc4626 + rewrite half functions * removed excess functions, changed errors to OZ style * slash function is rewritten * lint of StakeToken * Simplification of maxWithdraw (#33) * Move whenNotPaused to internal method (#34) * deleted old versions + little code-style fixes * finished StakeToken * removed excess contracts * erc-4626 tests ready * deleted excess files * tests for ERC20/4626 ready * removed StataStakeToken * cooldown tests are ready * Added pause tests, added modifier to slash function, some little fixes made * slashing tests + cooldownOnBehalf tests * depositWithPermit added + some little name/description fixes * tests finished * storage refactored to OZ like, added comments to errors, fixed try-catch with permit * TestnetProcedures is deleted * remove aave-v3-origin dependencies --------- Co-authored-by: Pavel Menshikov <[email protected]> Co-authored-by: Andrei Kozlov <[email protected]> Co-authored-by: Pavel Menshikov <[email protected]>
* added OZ erc4626 + rewrite half functions * removed excess functions, changed errors to OZ style * slash function is rewritten * lint of StakeToken * Simplification of maxWithdraw (#33) * Move whenNotPaused to internal method (#34) * deleted old versions + little code-style fixes * finished StakeToken * removed excess contracts * erc-4626 tests ready * deleted excess files * tests for ERC20/4626 ready * removed StataStakeToken * cooldown tests are ready * Added pause tests, added modifier to slash function, some little fixes made * slashing tests + cooldownOnBehalf tests * depositWithPermit added + some little name/description fixes * tests finished * remove whenNotPaused * Remove aave v3 (#39) * storage refactored to OZ like, added comments to errors, fixed try-catch with permit * TestnetProcedures is deleted * remove aave-v3-origin dependencies * BUSL license --------- Co-authored-by: Pavel Menshikov <[email protected]> * forge install: openzeppelin-contracts-upgradeable v5.0.2 * deleted aave-helpers/token-v3, added OZ * forge install: solidity-utils v1.1.0 * fixed gramma error in link + removed OZ to solidity-utils * moved to extension * little fixes * fixed extension * OZ dependendies refactor * removed excess from interfaces * little style fixes * permit tests added * deleted smConfig * Delete exchange rate (#40) * initial commit without exchange rate * moved to OZ finally + added virtual assets counting * add decimalsOffset = 3 + fixed tests, cause shares were messed with assets * little fixes + commented 1 test * removed forge-std * change AC model to ownable, make permissioned methods virtual * tests are fixed after deleting slashingAdmin and ACLManager * Refactoring of _update on ERC4626StakeTokenUpgradeable (#41) * dependencies are sorted like like oz-up, oz, our * optimized _update + added event * renamed IStakeToken to IERC4626StakeToken as made in stata + license updated + inheritdoc inserted * little fix * micro opt * Rescuable returned * added test for non-admins fuzz * Tests added * Docs are added * Grammar fixed * non-admin tests fixed * precision losses are added into the limitations p * little foundry fix * Update LICENSE Co-authored-by: Andrey <[email protected]> * Update README.md Co-authored-by: Andrey <[email protected]> * Update tests/Rescuable.t.sol Co-authored-by: Andrey <[email protected]> * deleted excess function * add comment --------- Co-authored-by: Pavel Menshikov <[email protected]> Co-authored-by: Andrei Kozlov <[email protected]> * accept right changes + removed outdated condition for combined test * Update README.md Co-authored-by: Lukas <[email protected]> * Update README.md Co-authored-by: Lukas <[email protected]> * renamed timestamp to endOfCooldown * forge install: erc4626-tests * a16z tests added * added withdrawalWindow * Added test to cover window and cooldown change * added setUp yield into a16z tests * little fixes --------- Co-authored-by: Pavel Menshikov <[email protected]> Co-authored-by: Pavel Menshikov <[email protected]> Co-authored-by: pavelvm5 <[email protected]> Co-authored-by: pavelvm5 <[email protected]> Co-authored-by: Lukas <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
add missing 4626 methods (while this is not a 100% compliant 4626 for usability would be nice to add support for a bigger subset of methods)use Error() over stringundecided yet asrequire()
syntax is nicer, butrequire(Error())
relies onvia-ir