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

wip: PCV v3 #855

Closed
wants to merge 3 commits into from
Closed

wip: PCV v3 #855

wants to merge 3 commits into from

Conversation

eswak
Copy link
Contributor

@eswak eswak commented May 25, 2022

No description provided.


/// @notice convert an amount of assets
/// All numbers must be in the order returned by assets().
function convertAssets(int256[] memory amountsIn, int256[] memory minAmountsOut)
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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;
Copy link
Contributor Author

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

Comment on lines +22 to +30
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);
Copy link
Contributor Author

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

@eswak eswak added the epic label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protocol accounting "v3" (vault, gnosis safe, multi-asset, 4626, converters)
2 participants