Skip to content

Commit

Permalink
chore: repack and optimize yield params struct
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev committed Sep 22, 2023
1 parent 43cbede commit 4e16314
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/zkbob/ZkBobCompoundingMixin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ abstract contract ZkBobCompoundingMixin is ZkBobPool {
struct YieldParams {
// ERC4626 vault address (or address(0) if not set)
address yield;
// maximum amount of underlying tokens that can be invested into vault
uint256 maxInvestedAmount;
// expected amount of underlying tokens to be left at the pool after successful rebalance
uint96 buffer;
// operator address (or address(0) if permissionless)
address yieldOperator;
// slippage/rounding protection buffer, small part of accumulated interest that is non-claimable
uint96 dust;
// address to receive accumulated interest during the rebalance
address interestReceiver;
// operator address (or address(0) if permissionless)
address yieldOperator;
// maximum amount of underlying tokens that can be invested into vault
uint256 maxInvestedAmount;
}

YieldParams public yieldParams;
Expand Down
8 changes: 4 additions & 4 deletions test/interfaces/IZkBobPoolAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ interface IZkBobPoolAdmin {
struct YieldParams {
// ERC4626 vault address (or address(0) if not set)
address yield;
// maximum amount of underlying tokens that can be invested into vault
uint256 maxInvestedAmount;
// expected amount of underlying tokens to be left at the pool after successful rebalance
uint96 buffer;
// operator address (or address(0) if permissionless)
address yieldOperator;
// slippage/rounding protection buffer, small part of accumulated interest that is non-claimable
uint96 dust;
// address to receive accumulated interest during the rebalance
address interestReceiver;
// operator address (or address(0) if permissionless)
address yieldOperator;
// maximum amount of underlying tokens that can be invested into vault
uint256 maxInvestedAmount;
}

function denominator() external pure returns (uint256);
Expand Down

0 comments on commit 4e16314

Please sign in to comment.