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 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" )
Click to show internal directories.
Click to hide internal directories.