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

Simplification of maxWithdraw #33

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Conversation

kyzia551
Copy link

@kyzia551 kyzia551 commented Aug 9, 2024

No description provided.

@pavelvm5 pavelvm5 merged commit 9e3530d into refact/erc4626 Aug 9, 2024
1 check failed
@pavelvm5 pavelvm5 deleted the fix/max-withdraw-ref branch August 9, 2024 09:31
pavelvm5 added a commit that referenced this pull request Aug 18, 2024
* 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]>
sakulstra added a commit that referenced this pull request Aug 29, 2024
* 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants