Documentation ¶
Index ¶
- type Anchor
- type BLUNACustody
- type BorrowerInfo
- type EpochState
- type Market
- func (m Market) BorrowerInfo(ctx context.Context, borrower cosmos.AccAddress) (BorrowerInfo, error)
- func (m Market) EpochState(ctx context.Context) (EpochState, error)
- func (m Market) NewBorrowStableMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
- func (m Market) NewClaimRewardsMessage(sender cosmos.AccAddress) (cosmos.Msg, error)
- func (m Market) NewDepositUSTMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
- func (m Market) NewRedeemAUSTMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
- func (m Market) NewRepayStableMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
- type Overseer
- func (o *Overseer) BorrowLimit(ctx context.Context, borrower cosmos.AccAddress) (decimal.Decimal, error)
- func (o *Overseer) Collateral(ctx context.Context, borrower cosmos.AccAddress, token terra.Token) (decimal.Decimal, error)
- func (o *Overseer) Collaterals(ctx context.Context, borrower cosmos.AccAddress) (map[string]decimal.Decimal, error)
- func (o *Overseer) NewLockCollateralMessage(sender cosmos.AccAddress, token terra.Cw20Token, amount decimal.Decimal) (cosmos.Msg, error)
- func (o *Overseer) NewUnlockCollateralMessage(sender cosmos.AccAddress, token terra.Cw20Token, amount decimal.Decimal) (cosmos.Msg, error)
- type PriceOracle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anchor ¶
type Anchor struct { Market *Market Overseer *Overseer PriceOracle *PriceOracle BLUNACustody *BLUNACustody }
func (*Anchor) NewProvideBLUNAMessages ¶
func (*Anchor) NewWithdrawBLUNAMessages ¶
type BLUNACustody ¶
func NewBLUNACustody ¶
func NewBLUNACustody(querier *terra.Querier) (*BLUNACustody, error)
func (*BLUNACustody) NewDepositCollateralMessage ¶
func (c *BLUNACustody) NewDepositCollateralMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
func (*BLUNACustody) NewWithdrawCollateralMessage ¶
func (c *BLUNACustody) NewWithdrawCollateralMessage(sender cosmos.AccAddress, amount decimal.Decimal) (cosmos.Msg, error)
type BorrowerInfo ¶
type EpochState ¶ added in v0.4.0
type Market ¶
func (Market) BorrowerInfo ¶
func (m Market) BorrowerInfo(ctx context.Context, borrower cosmos.AccAddress) (BorrowerInfo, error)
func (Market) EpochState ¶ added in v0.4.0
func (m Market) EpochState(ctx context.Context) (EpochState, error)
func (Market) NewBorrowStableMessage ¶
func (Market) NewClaimRewardsMessage ¶
func (Market) NewDepositUSTMessage ¶
func (Market) NewRedeemAUSTMessage ¶
func (Market) NewRepayStableMessage ¶
type Overseer ¶
func (*Overseer) BorrowLimit ¶
func (*Overseer) Collateral ¶
func (*Overseer) Collaterals ¶
func (*Overseer) NewLockCollateralMessage ¶
type PriceOracle ¶
func NewPriceOracle ¶
func NewPriceOracle(querier *terra.Querier) (*PriceOracle, error)
Click to show internal directories.
Click to hide internal directories.