@solace-fi/sdk-nightly
Version:
Note - Unstable nightly build, documentation not up-to-date for nightly build
49 lines (48 loc) • 1.32 kB
TypeScript
import { Contract } from '@ethersproject/contracts';
import { BigNumber } from 'ethers';
export declare type BondTellerDetails = {
tellerData: BondTellerData;
principalData: BondPrincipalData;
};
export declare type BondTellerTokenData = {
[chainId: number]: {
addr: string;
type: BondTellerType;
};
};
export declare type BondTellerData = {
teller: BondTellerContractData;
bondPrice: BigNumber;
usdBondPrice: number;
vestingTermInSeconds: number;
capacity: BigNumber;
maxPayout: BigNumber;
bondFeeBps?: BigNumber;
bondRoi: number;
};
export declare type BondTellerType = 'erc20' | 'eth' | 'matic' | 'ftm';
export declare type BondTellerContractData = {
contract: Contract;
type: BondTellerType;
};
export declare type BondPrincipalData = {
principal: Contract;
principalProps: {
symbol: string;
decimals: number;
name: string;
address: string;
};
token0?: string;
token1?: string;
};
export declare type BondTokenData = {
payoutAmount: BigNumber;
payoutAlreadyClaimed: BigNumber;
principalPaid: BigNumber;
vestingStart: number;
localVestingTerm: number;
};
export declare type BondToken = BondTokenData & {
id: BigNumber;
};