pub struct Pot {
pub pot_bnb: Option<f64>,
pub distribute_bps: f64,
pub round_end: i64,
pub total_points: Option<f64>,
pub points_per_usd: f64,
}Expand description
Live undistributed pot and the round parameters needed to price a point.
Fields§
§pot_bnb: Option<f64>Live BNB balance of the Distributor.
None when no Distributor is configured or the RPC is unreachable —
hide the figure, do not render 0.
distribute_bps: f64Basis points paid pro-rata by points; the remainder goes to the VRF winner.
round_end: i64Next round close, UNIX seconds, read from the contract’s own schedule.
total_points: Option<f64>Points across the whole payout set — the denominator of every share.
None when it could not be computed (not zero).
points_per_usd: f64Points credited per $1 of volume. Buys and sells score alike.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pot
impl<'de> Deserialize<'de> for Pot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Pot
impl RefUnwindSafe for Pot
impl Send for Pot
impl Sync for Pot
impl Unpin for Pot
impl UnsafeUnpin for Pot
impl UnwindSafe for Pot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more