-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/add new leverage for new mint markets #13
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
base: main
Are you sure you want to change the base?
Conversation
fed1b6a
to
f3ac41b
Compare
return await this._deprecatedLeverageCreateLoan(collateral, debt, range, slippage, false) as string; | ||
} | ||
|
||
// ---------------- LEVERAGE CREATE LOAN ---------------- |
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.
We cannot keep on adding code to the same file and mix market types
We need proper way of separating the different markets in separate files
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 cannot review this because I don't know what's new and what's copied
src/interfaces.ts
Outdated
@@ -33,6 +33,8 @@ export interface ILlamma { | |||
default_bands: number, | |||
A: number, | |||
monetary_policy_abi: any | |||
is_new_market?: boolean |
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.
Can we use a proper name for this flag, for example using the feature name like isDeleverageSupported
?
This is not scalable. Next update we cannot use this anymore
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.
yea, sure. Okay
9bd92db
to
d65bd14
Compare
feat: add new leverage for new mintMarkets
c419013
to
f0211a9
Compare
No description provided.