-
Notifications
You must be signed in to change notification settings - Fork 98
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: PCV v3 #855
wip: PCV v3 #855
Conversation
|
||
/// @notice convert an amount of assets | ||
/// All numbers must be in the order returned by assets(). | ||
function convertAssets(int256[] memory amountsIn, int256[] memory minAmountsOut) |
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.
spin out converters
|
||
/// @notice list of assets handled by this strategy | ||
/// asset() must be a assets()[0] | ||
function assets() public view virtual returns (address[] memory tokens) { |
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.
separate 4626 strategies & multi assets strategies
/// in that case, all external calls happen through the Safe, and | ||
/// the Safe will hold all ERC4626 vault shares, as well as all | ||
/// tokens used in conversions. | ||
address public gnosisSafeAddress; |
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.
make an opinionated choice : either it's through a gnosis safe or not
event SetOracle(address caller, address indexed token, address indexed oracle); | ||
event AssetRegister(address caller, address indexed token); | ||
event AssetDeregister(address caller, address indexed token); | ||
event StrategyRegister(address caller, address indexed strategy); | ||
event StrategyDeregister(address caller, address indexed strategy); | ||
event Balance(address caller, address indexed token, uint256 amount); | ||
event Deploy(address caller, address indexed strategy, address indexed token, uint256 amount); | ||
event Recall(address caller, address indexed strategy, address indexed token, uint256 amount); | ||
event Revenue(address caller, address indexed strategy, address indexed token, int256 amount); |
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.
make a spec of transitions in the vault & access control etc
No description provided.