Skip to content

Commit

Permalink
maxWithdraw and maxRedeem comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
MickdeGraaf committed May 18, 2024
1 parent f1da614 commit 72ed7f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Synths/EulerSavingsRate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ contract EulerSavingsRate is EVCUtil, ERC4626 {
function maxRedeem(address owner) public view override returns (uint256) {
// If account has borrows, withdrawal might be reverted by the controller during account status checks.
// The collateral vault has no way to verify or enforce the behaviour of the controller, which the account owner
// has enabled. It will therefore assume that all of the assets would be withheld by the controller and
// The vault has no way to verify or enforce the behaviour of the controller, which the account owner
// has enabled. It will therefore assume that all of the assets would be witheld by the controller and
// under-estimate the return amount to zero.
// Integrators who handle borrowing should implement custom logic to work with the particular controllers
// they want to support.
Expand All @@ -85,7 +86,8 @@ contract EulerSavingsRate is EVCUtil, ERC4626 {
function maxWithdraw(address owner) public view override returns (uint256) {
// If account has borrows, withdrawal might be reverted by the controller during account status checks.
// The collateral vault has no way to verify or enforce the behaviour of the controller, which the account owner
// has enabled. It will therefore assume that all of the assets would be withheld by the controller and
// The vault has no way to verify or enforce the behaviour of the controller, which the account owner
// has enabled. It will therefore assume that all of the assets would be witheld by the controller and
// under-estimate the return amount to zero.
// Integrators who handle borrowing should implement custom logic to work with the particular controllers
// they want to support.
Expand Down

0 comments on commit 72ed7f8

Please sign in to comment.