Skip to content

Conversation

williamsfu99
Copy link
Contributor

New PerpV2LeverageViewerAPI for the upcoming contract that will abstract a lot of data getters out of the existing PerpV2LeverageModule.

Relevant smart contract PR: SetProtocol/set-protocol-v2#185

* @param setTokenAddress Instance of the SetToken
* @param callerAddress Address of the method caller
*
* @return Array of info concerning size and leverage of current vAsset positions
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add more info here in comments when we have this more concrete?

Copy link
Contributor

Choose a reason for hiding this comment

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

well i guess nvm you do have VAssetDisplayInfo in the return so i guess can figure out from looking there

export type VAssetDisplayInfo = {
symbol: string;
address: Address;
positionUnit: BigNumber;
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add some comments here about how these numbers are in units of 10^18

@justinkchen justinkchen merged commit 126a3fb into master Jan 21, 2022
@justinkchen justinkchen deleted the add-perp-viewer/will branch January 21, 2022 04:20
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.

2 participants