# Functions
AddressFromKey extracts address from a key with the form prefix | lengthPrefixed(addr) | ...
CreateAdjustedBorrowKey returns a KVStore key for getting and setting an adjusted borrow for a denom and borrower address.
CreateAdjustedBorrowKeyNoDenom returns the common prefix used by all borrows associated with a given borrower address.
CreateAdjustedTotalBorrowKey returns a KVStore key for getting and setting the total ajdusted borrows for a given token.
CreateBadDebtKey returns a KVStore key for tracking an address with unpaid bad debt.
CreateBadDebtKeyNoAddress returns a safe copy of bad debt prefix.
CreateCollateralAmountKey returns a KVStore key for getting and setting the amount of collateral stored for a lender in a given denom.
CreateCollateralAmountKeyNoAddress returns a safe copy of collateralPrefix.
CreateCollateralAmountKeyNoDenom returns the common prefix used by all collateral associated with a given lender address.
CreateCollateralSettingKey returns a KVStore key for getting and setting a borrower's collateral setting for a single uToken.
CreateInterestScalarKey returns a KVStore key for getting and setting the interest scalar for a given token.
CreateLastInterestTimeKey returns a KVStore key for getting and setting the amount reserved of a a given token.
CreateRegisteredTokenKey returns a KVStore key for getting and setting a Token.
CreateReserveAmountKey returns a KVStore key for getting and setting the amount reserved of a a given token.
CreateReserveAmountKeyNoDenom returns a safe copy of reserveAmountPrefix.
DefaultGenesis returns the default genesis state of the x/leverage module.
DefaultParams returns a default set of parameters.
DenomFromKey extracts denom from a key with the form prefix | denom | 0x00.
DenomFromKeyWithAddress extracts denom from a key with the form prefix | lengthPrefixed(addr) | denom | 0x00.
GetGenesisStateFromAppState returns x/leverage GenesisState given raw application genesis state.
NewAdjustedBorrow creates the Borrow struct used in GenesisState.
NewBadDebt creates the BadDebt struct used in GenesisState.
NewCollateral creates the Collateral struct used in GenesisState.
NewCollateralSetting creates the CollateralSetting struct used in GenesisState.
NewGenesisState creates a new GenesisState object.
NewInterestScalar creates the InterestScalar struct used in GenesisState.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParamKeyTable returns the x/leverage module's parameter KeyTable expected by the x/params module.
No description provided by the author
RegisterLegacyAminoCodec registers the necessary x/leverage interfaces and concrete types on the provided LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
UTokenFromTokenDenom returns the uToken denom given a token denom.
# Constants
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
Event types and attributes for the leverage module.
ModuleName defines the module name.
ProposalTypeUpdateRegistryProposal defines the type for a UpdateRegistryProposal proposal type.
QuerierRoute defines the module's query routing key.
RouterKey is the message route for slashing.
No description provided by the author
StoreKey defines the primary module store key.
UTokenPrefix defines the uToken denomination prefix for all uToken types.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
KVStore key prefixes.
ModuleCdc references the global x/leverage module codec.
# Structs
AdjustedBorrow is a borrow struct used in the leverage module's genesis state.
BadDebt is a bad debt instance used in the leverage module's genesis state.
Collateral is a collateral struct used in the leverage module's genesis state.
CollateralSetting is a collateral setting struct used in the leverage module's genesis state.
GenesisState defines the x/leverage module's genesis state.
InterestScalar is an interest scalar used in the leverage module's genesis state.
MsgBorrowAsset represents a lender's request to borrow a base asset type from the module.
MsgBorrowAssetResponse defines the Msg/BorrowAsset response type.
MsgLendAsset represents a lender's request to lend a base asset type to the module.
MsgLendAssetResponse defines the Msg/LendAsset response type.
MsgLiquidate represents a liquidator's request to repay a specific borrower's borrowed base asset type to the module in exchange for collateral reward.
MsgLiquidateResponse defines the Msg/Liquidate response type.
MsgRepayAsset represents a lender's request to repay a borrowed base asset type to the module.
MsgRepayAssetResponse defines the Msg/RepayAsset response type.
MsgSetCollateral represents a lender's request to enable or disable a uToken type in their possession as collateral.
MsgSetCollateralResponse defines the Msg/SetCollateral response type.
MsgWithdrawAsset represents a lender's request to withdraw a previously lent base asset type from the module.
MsgWithdrawAssetResponse defines the Msg/WithdrawAsset response type.
Params defines the parameters for the leverage module.
QueryAvailableBorrowRequest defines the request structure for the available amount for borrow gRPC service handler.
QueryAvailableBorrowResponse defines the response structure for the available amount for borrow gRPC service handler.
QueryBorrowAPYRequest defines the request structure for the BorrowAPY gRPC service handler.
QueryBorrowAPYResponse defines the response structure for the BorrowAPY gRPC service handler.
QueryBorrowedRequest defines the request structure for the Borrowed gRPC service handler.
QueryBorrowedResponse defines the response structure for the Borrowed gRPC service handler.
QueryBorrowLimitRequest defines the request structure for the BorrowLimit gRPC service handler.
QueryBorrowLimitResponse defines the response structure for the ExchangeRate gRPC service handler.
QueryCollateralRequest defines the request structure for the Collateral gRPC service handler.
QueryCollateralResponse defines the response structure for the Collateral gRPC service handler.
QueryCollateralSettingsRequest defines the request structure for the CollateralSetting gRPC service handler.
QueryCollateralSettingsResponse defines the response structure for the CollateralSetting gRPC service handler.
QueryExchangeRateRequest defines the request structure for the ExchangeRate gRPC service handler.
QueryExchangeRateResponse defines the response structure for the ExchangeRate gRPC service handler.
QueryLendAPYRequest defines the request structure for the LendAPY gRPC service handler.
QueryLendAPYResponse defines the response structure for the LendAPY gRPC service handler.
QueryLiquidationTargetsRequest defines the request structure for the BorrowLimit gRPC service handler.
QueryLiquidationTargetsResponse defines the response structure for the ExchangeRate gRPC service handler.
QueryMarketSizeRequest defines the request structure for the Market Size in USD gRPC service handler.
QueryMarketSizeResponse defines the response structure for the Market Size in USD gRPC service handler.
QueryParamsRequest defines the request structure for the Params gRPC service handler.
QueryParamsResponse defines the response structure for the Params gRPC service handler.
QueryRegisteredTokens defines the request structure for the RegisteredTokens gRPC service handler.
QueryRegisteredTokensResponse defines the response structure for the RegisteredTokens gRPC service handler.
QueryReserveAmountRequest defines the request structure for the ReserveAmount gRPC service handler.
QueryReserveAmountResponse defines the response structure for the ReserveAmount gRPC service handler.
Token defines a token, along with its capital metadata, in the Umee capital facility that can be loaned and borrowed.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
UpdateRegistryProposal defines a governance proposal type where the token registry can be updated in the Umee capital facility.
# Interfaces
AccountKeeper defines the expected account keeper used for leverage simulations (noalias).
BankKeeper defines the expected x/bank keeper interface.
Hooks defines pre or post processing hooks for various actions the x/leverage module takes.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
OracleKeeper defines the expected x/oracle keeper interface.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
# Type aliases
MultiHooks defines a type alias for multiple hooks, i.e.