Documentation ¶
Index ¶
- Constants
- func BeginBlockerProcessMTP(ctx sdk.Context, k Keeper, mtp *types.MTP, pool *clptypes.Pool)
- func CalcMTPInterestLiabilities(mtp *types.MTP, interestRate sdk.Dec, epochPosition, epochLength int64) sdk.Uint
- func GetEpochPosition(ctx sdk.Context, epochLength int64) int64
- func NewLegacyHandler(k types.Keeper) sdk.Handler
- func NewLegacyQuerier(k types.Keeper, cdc *codec.LegacyAmino) sdk.Querier
- func NewMsgServerImpl(k types.Keeper) types.MsgServer
- func NewQueryServer(k types.Keeper) types.QueryServer
- func ToAsset(asset string) clptypes.Asset
- func ValidateParams(params *types.Params) error
- type Keeper
- func (k Keeper) AdminKeeper() adminkeeper.Keeper
- func (k Keeper) BankKeeper() types.BankKeeper
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) Borrow(ctx sdk.Context, collateralAsset string, collateralAmount sdk.Uint, ...) error
- func (k Keeper) CLPSwap(ctx sdk.Context, sentAmount sdk.Uint, to string, pool clptypes.Pool) (sdk.Uint, error)
- func (k Keeper) CalculatePoolHealth(pool *clptypes.Pool) sdk.Dec
- func (k Keeper) CheckMinLiabilities(ctx sdk.Context, collateralAmount sdk.Uint, eta sdk.Dec, pool clptypes.Pool, ...) error
- func (k Keeper) ClpKeeper() types.CLPKeeper
- func (k Keeper) DestroyMTP(ctx sdk.Context, mtpAddress string, id uint64) error
- func (k Keeper) DewhitelistAddress(ctx sdk.Context, address string)
- func (k Keeper) EmitAboveRemovalThreshold(ctx sdk.Context, pool *clptypes.Pool)
- func (k Keeper) EmitAdminClose(ctx sdk.Context, mtp *types.MTP, repayAmount sdk.Uint, closer string)
- func (k Keeper) EmitAdminCloseAll(ctx sdk.Context, takeMarginFund bool)
- func (k Keeper) EmitBelowRemovalThreshold(ctx sdk.Context, pool *clptypes.Pool)
- func (k Keeper) EmitForceClose(ctx sdk.Context, mtp *types.MTP, repayAmount sdk.Uint, closer string)
- func (k Keeper) EmitFundPayment(ctx sdk.Context, mtp *types.MTP, takeAmount sdk.Uint, takeAsset string, ...)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) ForceCloseLong(ctx sdk.Context, mtp *types.MTP, pool *clptypes.Pool, isAdminClose bool, ...) (sdk.Uint, error)
- func (k Keeper) GetAllMTPS(ctx sdk.Context) []*types.MTP
- func (k Keeper) GetEnabledPools(ctx sdk.Context) []string
- func (k Keeper) GetEpochLength(ctx sdk.Context) int64
- func (k Keeper) GetForceCloseFundAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetForceCloseFundPercentage(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetHealthGainFactor(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetIncrementalInterestPaymentEnabled(ctx sdk.Context) bool
- func (k Keeper) GetIncrementalInterestPaymentFundAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetIncrementalInterestPaymentFundPercentage(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetInterestRateDecrease(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetInterestRateIncrease(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetInterestRateMax(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetInterestRateMin(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetMTP(ctx sdk.Context, mtpAddress string, id uint64) (types.MTP, error)
- func (k Keeper) GetMTPCount(ctx sdk.Context) uint64
- func (k Keeper) GetMTPIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetMTPs(ctx sdk.Context, pagination *query.PageRequest) ([]*types.MTP, *query.PageResponse, error)
- func (k Keeper) GetMTPsForAddress(ctx sdk.Context, mtpAddress sdk.Address, pagination *query.PageRequest) ([]*types.MTP, *query.PageResponse, error)
- func (k Keeper) GetMTPsForPool(ctx sdk.Context, asset string, pagination *query.PageRequest) ([]*types.MTP, *query.PageResponse, error)
- func (k Keeper) GetMaxLeverageParam(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetMaxOpenPositions(ctx sdk.Context) uint64
- func (k Keeper) GetOpenMTPCount(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPoolOpenThreshold(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetRemovalQueueThreshold(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetSQBeginBlock(ctx sdk.Context, pool *clptypes.Pool) uint64
- func (k Keeper) GetSQFromBlocks(ctx sdk.Context, pool clptypes.Pool, poolInterestRate sdk.Dec) sdk.Dec
- func (k Keeper) GetSQFromQueue(ctx sdk.Context, pool clptypes.Pool) sdk.Dec
- func (k Keeper) GetSafetyFactor(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetSqModifier(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetWhitelist(ctx sdk.Context, pagination *query.PageRequest) ([]string, *query.PageResponse, error)
- func (k Keeper) HandleInterestPayment(ctx sdk.Context, interestPayment sdk.Uint, mtp *types.MTP, pool *clptypes.Pool) sdk.Uint
- func (k Keeper) IncrementalInterestPayment(ctx sdk.Context, interestPayment sdk.Uint, mtp *types.MTP, pool *clptypes.Pool) (sdk.Uint, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) []abci.ValidatorUpdate
- func (k Keeper) InterestRateComputation(ctx sdk.Context, pool clptypes.Pool) (sdk.Dec, error)
- func (k Keeper) IsPoolClosed(ctx sdk.Context, asset string) bool
- func (k Keeper) IsPoolEnabled(ctx sdk.Context, asset string) bool
- func (k Keeper) IsRowanCollateralEnabled(ctx sdk.Context) bool
- func (k Keeper) IsWhitelisted(ctx sdk.Context, address string) bool
- func (k Keeper) IsWhitelistingEnabled(ctx sdk.Context) bool
- func (k Keeper) Repay(ctx sdk.Context, mtp *types.MTP, pool *clptypes.Pool, repayAmount sdk.Uint, ...) error
- func (k Keeper) SetEnabledPools(ctx sdk.Context, pools []string)
- func (k Keeper) SetMTP(ctx sdk.Context, mtp *types.MTP) error
- func (k Keeper) SetParams(ctx sdk.Context, params *types.Params)
- func (k Keeper) SetSQBeginBlock(ctx sdk.Context, pool *clptypes.Pool, height uint64)
- func (k Keeper) TakeFundPayment(ctx sdk.Context, returnAmount sdk.Uint, returnAsset string, ...) (sdk.Uint, error)
- func (k Keeper) TakeInCustody(ctx sdk.Context, mtp types.MTP, pool *clptypes.Pool) error
- func (k Keeper) TakeOutCustody(ctx sdk.Context, mtp types.MTP, pool *clptypes.Pool) error
- func (k Keeper) TrackSQBeginBlock(ctx sdk.Context, pool *clptypes.Pool)
- func (k Keeper) UpdateMTPHealth(ctx sdk.Context, mtp types.MTP, pool clptypes.Pool) (sdk.Dec, error)
- func (k Keeper) UpdatePoolHealth(ctx sdk.Context, pool *clptypes.Pool) error
- func (k Keeper) WhitelistAddress(ctx sdk.Context, address string)
- type Migrator
Constants ¶
View Source
const MaxPageLimit = 100
Variables ¶
This section is empty.
Functions ¶
func BeginBlockerProcessMTP ¶
func GetEpochPosition ¶
get position of current block in epoch
func NewLegacyQuerier ¶
func NewQueryServer ¶
func NewQueryServer(k types.Keeper) types.QueryServer
func ValidateParams ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(storeKey sdk.StoreKey, cdc codec.BinaryCodec, bankKeeper types.BankKeeper, clpKeeper types.CLPKeeper, adminKeeper adminkeeper.Keeper, ps paramtypes.Subspace) Keeper
func (Keeper) AdminKeeper ¶
func (k Keeper) AdminKeeper() adminkeeper.Keeper
func (Keeper) BankKeeper ¶
func (k Keeper) BankKeeper() types.BankKeeper
func (Keeper) BeginBlocker ¶
func (Keeper) CalculatePoolHealth ¶
func (Keeper) CheckMinLiabilities ¶
func (Keeper) DestroyMTP ¶
func (Keeper) DewhitelistAddress ¶
func (Keeper) EmitAboveRemovalThreshold ¶
func (Keeper) EmitAdminClose ¶
func (Keeper) EmitAdminCloseAll ¶
func (Keeper) EmitBelowRemovalThreshold ¶
func (Keeper) EmitForceClose ¶
func (Keeper) EmitFundPayment ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) ForceCloseLong ¶
func (Keeper) GetForceCloseFundAddress ¶
func (k Keeper) GetForceCloseFundAddress(ctx sdk.Context) sdk.AccAddress
func (Keeper) GetForceCloseFundPercentage ¶
func (Keeper) GetIncrementalInterestPaymentEnabled ¶
func (Keeper) GetIncrementalInterestPaymentFundAddress ¶
func (k Keeper) GetIncrementalInterestPaymentFundAddress(ctx sdk.Context) sdk.AccAddress
func (Keeper) GetIncrementalInterestPaymentFundPercentage ¶
func (Keeper) GetInterestRateDecrease ¶
func (Keeper) GetInterestRateIncrease ¶
func (Keeper) GetMTPs ¶
func (k Keeper) GetMTPs(ctx sdk.Context, pagination *query.PageRequest) ([]*types.MTP, *query.PageResponse, error)
func (Keeper) GetMTPsForAddress ¶
func (Keeper) GetMTPsForPool ¶
func (Keeper) GetRemovalQueueThreshold ¶
func (Keeper) GetSQBeginBlock ¶
func (Keeper) GetSQFromBlocks ¶
func (Keeper) GetSQFromQueue ¶
func (Keeper) GetWhitelist ¶
func (k Keeper) GetWhitelist(ctx sdk.Context, pagination *query.PageRequest) ([]string, *query.PageResponse, error)
func (Keeper) HandleInterestPayment ¶
func (Keeper) IncrementalInterestPayment ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState) []abci.ValidatorUpdate
func (Keeper) InterestRateComputation ¶
func (Keeper) IsRowanCollateralEnabled ¶
func (Keeper) SetSQBeginBlock ¶
func (Keeper) TakeFundPayment ¶
func (Keeper) TakeInCustody ¶
func (Keeper) TakeOutCustody ¶
func (Keeper) TrackSQBeginBlock ¶
func (Keeper) UpdateMTPHealth ¶
func (Keeper) UpdatePoolHealth ¶
Click to show internal directories.
Click to hide internal directories.