feat(dango): allow providing partial `PairParams` updates using `optional_struct` · Issue #501 · left-curve/left-curve · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the optional_struct macro from optional_struct to allow for partial updates of PairParams.
#[optional_struct(PairParamsUpdates)]#[grug::derive(Serde,Borsh)]pubstructPairParams{/// Liquidity token denom of the passive liquidity pool.publp_denom:Denom,/// Curve invariant for the passive liquidity pool.pubcurve_invariant:CurveInvariant,/// Fee rate for instant swaps in the passive liquidity pool.pubswap_fee_rate:Bounded<Udec128,ZeroInclusiveOneExclusive>,}
@pacmanifold It doesn't make sense to change lp_denom. Does optional_struct allow "skipping" a field such as this? If not I would prefer to manually craft a PairParamsUpdates instead of using the macro.
Use the
optional_struct
macro from optional_struct to allow for partial updates of PairParams.Would allow calling for example
The text was updated successfully, but these errors were encountered: