-
Notifications
You must be signed in to change notification settings - Fork 1
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
Lending Strategy #1
base: master
Are you sure you want to change the base?
Conversation
…s + liquidateallpositions looping through current portfolio
do this
|
…otional-lending-strategy into 16slim/basic_strategy
// closing the position early | ||
// This function is supposed to be called after _checkPositionsAndWithdraw() so the matured positions | ||
// are supposed to already be included in the contract's want balance | ||
return balanceOfWant() |
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.
Should this include ETH balance when the want is WETH?
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.
Shouldn't be needed as all the ETH interactions with Notional are wrapped with weth.withdraw
or weth.deposit
so the strategy never has an ETH balance. Just in case the strategy also implements a function to sweep any potential ETH to governance (function sendETHToGovernance
)
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.
regarding roles
…d of deploying a new one
…to operate the strat manuallyif needed
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.
looks very good!! good job
… logic (and necessary changes in tests)
…d ONE constant to WETH as per @storming0x comments
…y and cloned strategy in test_clone.py as per @storming0x comment
No description provided.