Struct fsnft_utils::AucConf[][src]

pub struct AucConf {
    pub bid_token: ContractInfo,
    pub auc_period: u64,
    pub resv_boundary: u32,
    pub min_bid_inc: u32,
    pub unlock_threshold: Uint128,
}
Expand description

ftoken config for bidding. Nested in a larger struct

Fields

bid_token: ContractInfo

Determines the token that bids are made in (eg: sSCRT)

auc_period: u64

Number of blocks that a bid remains live before a finalize_vote_count tx can be called

resv_boundary: u32

User needs to vote a reservation price within this boundary. Boundary is the percentage above and below current reservation price. Floor = current reservation price * 100 / minmax_boundary. Ceiling = current reservation price * minmax_boundary / 100.

min_bid_inc: u32

Min bid increment proportion in basis points ie: 1/10_000. So a setting of 10 means that if the current highest bid is 100_000 tokens, the next bid needs to be at least 1/1000 higher, or 100_100 tokens

unlock_threshold: Uint128

Proportion of ftoken OF TOTAL SUPPLY before NFT gets unlocked. Unit in basis points (1/1000)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.