SetProtocol / set.js

Javascript library for the Set Protocol V2
Apache License 2.0
33 stars 14 forks source link

Add PerpV2LeverageAPI and tests #101

Closed williamsfu99 closed 2 years ago

williamsfu99 commented 2 years ago

Set.js version 0.4.9:

Includes the PerpV2LeverageAPI class to Set, and allows for library users to pass in a perpV2LeverageModuleAddress contract address into the config object.

With this, we can have access to getters such as collateralToken and getAccountInfo to monitor positional state with Perpetual Protocol.