pub enum BadDeploy {
Name(String),
FeeShare(String),
OutOfRange {
what: &'static str,
least: &'static str,
most: &'static str,
value: String,
},
TooLong {
what: &'static str,
most: usize,
value: String,
},
Keywords(usize),
Twice(String),
MarkPxs(usize),
MarginTiers,
MarginTableZero(String),
EvmExtraWeiDecimals(i8),
NoGrants,
}Expand description
Why a spotDeploy, perpDeploy, validatorL1Stream or requestEvmContract action could not
be made: a value outside what the venue’s docs allow, caught before anything is signed.
Variants§
Name(String)
A dex name or deployer label that is not 2 to 4 lower case letters.
A deployer trading fee share that is not a percentage from 0% to 100%.
OutOfRange
A decimal outside the range the docs allow.
Fields
TooLong
A text longer than the docs allow.
Fields
Keywords(usize)
An annotation with more than 2 keywords; holds how many were given.
Twice(String)
A coin given twice in one per-coin list; holds the coin.
MarkPxs(usize)
A setOracle with more than 2 lists of mark prices; holds how many were given.
MarginTiers
A margin table with no tiers, more than 3, a leverage outside 1 to 50, or tiers out of order.
MarginTableZero(String)
A setMarginTableIds that gives a coin table id 0; holds the coin.
EvmExtraWeiDecimals(i8)
An evmExtraWeiDecimals outside -2 to 18; holds the value given.
NoGrants
A setSubDeployers with no grants.
Trait Implementations§
impl Eq for BadDeploy
Source§impl Error for BadDeploy
impl Error for BadDeploy
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for BadDeploy
Auto Trait Implementations§
impl Forget for BadDeploy
impl Freeze for BadDeploy
impl Move for BadDeploy
impl RefUnwindSafe for BadDeploy
impl Send for BadDeploy
impl Sync for BadDeploy
impl Unpin for BadDeploy
impl UnsafeUnpin for BadDeploy
impl UnwindSafe for BadDeploy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.