smartalpha

package
v0.0.0-...-5fc2af4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const JuniorTranche = "JUNIOR"
View Source
const SeniorTranche = "SENIOR"

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochInfo

type EpochInfo struct {
	PoolAddress            string
	Epoch                  *big.Int
	SeniorLiquidity        *big.Int
	JuniorLiquidity        *big.Int
	UpsideExposureRate     *big.Int
	DownsideProtectionRate *big.Int
	JuniorTokenPrice       *big.Int
	SeniorTokenPrice       *big.Int
	EpochEntryPrice        *big.Int
}

type Pool

type Pool struct {
	PoolName               string `json:"poolName"`
	PoolAddress            string `json:"poolAddress"`
	PoolToken              types.Token
	JuniorTokenAddress     string `json:"juniorTokenAddress"`
	JuniorTokenSymbol      string `json:"juniorTokenSymbol"`
	SeniorTokenAddress     string `json:"seniorTokenAddress"`
	SeniorTokenSymbol      string `json:"seniorTokenSymbol"`
	OracleAddress          string `json:"oracleAddress"`
	OracleAssetSymbol      string `json:"oracleAssetSymbol"`
	SeniorRateModelAddress string `json:"seniorRateModelAddress"`
	AccountingModelAddress string `json:"accountingModelAddress"`
	Epoch1Start            int64  `json:"epoch1Start"`
	EpochDuration          int64  `json:"epochDuration"`
	StartAtBlock           int64  `json:"startAtBlock"`
}

type State

type State struct {
	PoolAddress                string
	QueuedJuniorsUnderlyingIn  *big.Int
	QueuedJuniorsUnderlyingOut *big.Int
	QueuedJuniorTokensBurn     *big.Int
	QueuedSeniorsUnderlyingIn  *big.Int
	QueuedSeniorsUnderlyingOut *big.Int
	QueuedSeniorTokensBurn     *big.Int
	EstimatedJuniorLiquidity   *big.Int
	EstimatedSeniorLiquidity   *big.Int
	EstimatedJuniorTokenPrice  *big.Int
	EstimatedSeniorTokenPrice  *big.Int
}

type TxType

type TxType string
const (
	JuniorEntry            TxType = "JUNIOR_ENTRY"
	JuniorRedeemTokens     TxType = "JUNIOR_REDEEM_TOKENS"
	JuniorExit             TxType = "JUNIOR_EXIT"
	JuniorRedeemUnderlying TxType = "JUNIOR_REDEEM_UNDERLYING"
	SeniorEntry            TxType = "SENIOR_ENTRY"
	SeniorRedeemTokens     TxType = "SENIOR_REDEEM_TOKENS"
	SeniorExit             TxType = "SENIOR_EXIT"
	SeniorRedeemUnderlying TxType = "SENIOR_REDEEM_UNDERLYING"
	JtokenSend             TxType = "JTOKEN_SEND"
	JtokenReceive          TxType = "JTOKEN_RECEIVE"
	StokenSend             TxType = "STOKEN_SEND"
	StokenReceive          TxType = "STOKEN_RECEIVE"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL