-
Notifications
You must be signed in to change notification settings - Fork 43
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
refactor(test): use market-lib #170
Conversation
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.
Is it just for illustration or do you want to merge it?
I'd like to merge it yes because the test suite should IMO be illustrative of how integrators would interact with our protocol. |
The base branch was changed.
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.
this works and it's cleaner to me (Solidity is surprising sometimes)
market = Market(
IERC20(address(borrowableAsset)),
IERC20(address(collateralAsset)),
borrowableOracle,
collateralOracle,
irm,
LLTV
);
id = market.id();
Proposed here #189 |
refactor(test): use market-lib 2
4932a69
Illustrates how an integrator would use
MarketLib