[][src]Struct cw20_staking::msg::InvestmentResponse

pub struct InvestmentResponse {
    pub token_supply: Uint128,
    pub staked_tokens: Coin,
    pub nominal_value: Decimal,
    pub owner: HumanAddr,
    pub exit_tax: Decimal,
    pub validator: HumanAddr,
    pub min_withdrawal: Uint128,
}

Fields

token_supply: Uint128staked_tokens: Coinnominal_value: Decimalowner: HumanAddr

owner created the contract and takes a cut

exit_tax: Decimal

this is how much the owner takes as a cut when someone unbonds

validator: HumanAddr

All tokens are bonded to this validator

min_withdrawal: Uint128

This is the minimum amount we will pull out to reinvest, as well as a minumum that can be unbonded (to avoid needless staking tx)

Trait Implementations

impl Clone for InvestmentResponse[src]

impl Debug for InvestmentResponse[src]

impl<'de> Deserialize<'de> for InvestmentResponse[src]

impl JsonSchema for InvestmentResponse[src]

impl PartialEq<InvestmentResponse> for InvestmentResponse[src]

impl Serialize for InvestmentResponse[src]

impl StructuralPartialEq for InvestmentResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.