Quick Start
Get started with the Boring Vault UI SDK
Installation
First install the dependencies
If you have installed ethers in your project already, you can skip the ethers installation.
Set-up the Provider
Interactions to and from a boring vault are done through a parent context/provider
that defines and sets up all relevant functionalities. The library additionally exposes some render components, however only the context is necessary to interact with the vault, within which a fully custom UI may be built.
Example
Inputs
Note all Contract
input addresses will be provided by the Seven Seas team.
Prop | Type | Default |
---|---|---|
vaultDecimals | number | - |
baseToken | { address: string; decimals: number; } | - |
depositTokens | Array<{ address: string; decimals: number; }> | - |
ethersProvider | ethers.Provider | - |
lensContract | string | - |
accountantContract | string | - |
tellerContract | string | - |
vaultContract | string | - |
isBoringV1ContextReady
This function denotes if the context is ready for usage.
Inputs
- None
Outputs
- Boolean denoting if the context is ready to use