-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: Algorithmic Market Operations for Collateral #848
Conversation
can you handle the changes, @FibrinLab ? |
Yes. Working on it. Adding a few more tests to increase coverage |
i must admit it's looking much better now |
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.
Code style changes. Check our contributions guidelines in this repo.
Its fixed |
nice but please refactor everything with underspace |
Hi, I will also review once the build is fixed
|
I recently added a ton of linter rules in @ubiquity/ts-template Perhaps they should be migrated to this repository. Unfortunately they are only configured for TypeScript but maybe there's a plugin for it to work with solidity. |
it does sound like a must-have implementation |
This comment was marked as duplicate.
This comment was marked as duplicate.
function dollarBalances() | ||
external | ||
view | ||
returns (uint256 dollarValE18, uint256 collatValE18) |
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.
you are doing good but this is unnaceptable, we can't have this naming, e.g dollarValE18
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.
why do you want to refer to this naming like that? @FibrinLab
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.
I tried to stay consistent with the fork. I will just switch to simpler var names.
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.
There is the UbiquityPoolFacet contract where users can:
- Deposit collateral tokens (
LUSD
for example) and getDollar
tokens - Redeem(burn)
Dollar
tokens in exchange for collateral
As a part of the current issue we should:
- Implement
AmoMinter
contract (example) which is responsible for transferring unused collateral from UbiquityPool to AMO contracts. There is already special method for borrowing collateral assets which can be called only by theAmoMinter
contract. - Implement 1 AMO strategy (example) and make it ERC-4626 compatible.
So in the end we should have a mechanism (set of contracts) where admin can transfer collateral tokens to one of the AMO strategies.
Right now AmoMinter
and at least 1 AMO
strategy contracts are not implemented.
Thanks for the review. AMO minter is implemented. Adding a strategy. |
we want to have this one too @FibrinLab , do not leave the PR stale, it's good you update us |
Hello. Making final changes. Almost ready |
@molecula451 Here is the initial draft. Adding tests and comments. |
Hi @FibrinLab unfortunately this pull request seems to break a few CI checks. Could you please have a look at the failures and try to fix them or re-run if needed? The GitHub action results are available in above , I am pasting the links for reference: Build & Test Details |
@FibrinLab please fix all the build erros, you can do |
closing looks like the contributor lose interests in working on the issue |
Resolves #611
Hello,
Forked from Frax and ERC 4626 compliant.
Increasing test coverage.
Comments Natspec.
Cannot get Ubiquibot to assign task to me.
Looking forward to review.
Thanks