Skip to content
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

export some useful utilities #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nevenhsu
Copy link

@nevenhsu nevenhsu commented Apr 11, 2023

This TypeScript code is exporting several modules, where each module imports either a default export or named exports from different files:

  • getLiquidationPrice: export from the ./utils/getLiquidationPrice file.

  • getMaxCollateral: export from the ./utils/getMaxCollateral file.

  • getMinCollateralForSpotPrice: export from the ./utils/getMinCollateralForSpotPrice file.

  • getGlobalContract: export from the ./utils/getGlobalContract file.

  • getLyraContract: export the default and two named exports getLyraContractAddress and getLyraContractABI from the ./utils/getLyraContract file.

  • getLyraMarketContract: export the default and two named exports getMarketContractAddress and getMarketContractABI from the ./utils/getLyraMarketContract file.

These exports can be used by code in other files to use the functions or variables in these modules.

@nevenhsu nevenhsu force-pushed the feat/utils branch 2 times, most recently from 35adbfb to 90ad53c Compare April 13, 2023 09:52
@nevenhsu nevenhsu force-pushed the feat/utils branch 2 times, most recently from 54be7ef to 1e18024 Compare April 28, 2023 04:03
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.

1 participant