-
Notifications
You must be signed in to change notification settings - Fork 14
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
Added Position profit #117
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
const positionsProfit: any = {}; | ||
|
||
data.data.account.states.map( |
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.
Probably makes sense to build a class around this and unit tests for each of the underlying methods (e.g., getProfit, getCurrentCollateralUsd), etc.
@@ -506,7 +513,7 @@ export default { | |||
if (poolInterest) interest = poolInterest; | |||
if (!poolInterest && pool?.interest) interest = pool?.interest; | |||
|
|||
if(pool.id === 36 && this.chainId === 1) interest = pool.interest; // deprecated WBTC | |||
if (pool.id === 36 && this.chainId === 1) interest = pool.interest; // deprecated WBTC |
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 probably leave a comment as to why we're doing this... When can we deprecate?
No description provided.