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

Lending Strategy #1

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open

Lending Strategy #1

wants to merge 56 commits into from

Conversation

jmonteer
Copy link
Owner

No description provided.

contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
@jmonteer
Copy link
Owner Author

do this

npm install / yarn

black .

git commit -am "fix: formatting"
git push origin 16slim/basic_strategy

contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/NotionalImplementation.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
// 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()

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?

Copy link
Collaborator

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)

contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
Copy link
Owner Author

@jmonteer jmonteer left a comment

Choose a reason for hiding this comment

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

regarding roles

contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
Copy link
Owner Author

@jmonteer jmonteer left a 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

contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
contracts/Strategy.sol Show resolved Hide resolved
contracts/Strategy.sol Outdated Show resolved Hide resolved
scripts/lendETH.py Outdated Show resolved Hide resolved
tests/test_migration.py Outdated Show resolved Hide resolved
tests/test_migration.py Outdated Show resolved Hide resolved
tests/test_migration.py Outdated Show resolved Hide resolved
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.

3 participants