Skip to content

metastable pool - #2

Open
decaf-addict wants to merge 2 commits into
mainfrom
metastable2
Open

metastable pool#2
decaf-addict wants to merge 2 commits into
mainfrom
metastable2

Conversation

@decaf-addict

Copy link
Copy Markdown
Owner
  • new way of estimating pooled balance for metastable pools
  • estimating total asset changed to non-view
  • updated tests

image

Comment thread contracts/Strategy.sol
}

// There is no way to calculate the total asset without doing a tx call.
function estimateTotalAssets() public returns (uint256 _wants) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this _wants variable used?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really necessary, just there for clarity.

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