pub struct DefiAnalysis {
pub protocol_type: ProtocolType,
pub has_oracle_dependency: bool,
pub oracle_info: Vec<OracleInfo>,
pub has_flash_loan_risk: bool,
pub flash_loan_info: Vec<String>,
pub dex_integrations: Vec<DexIntegration>,
pub lending_patterns: Vec<String>,
pub token_standards: Vec<TokenStandard>,
pub staking_patterns: Vec<String>,
pub risk_factors: Vec<DefiRiskFactor>,
}Expand description
Complete DeFi analysis result.
Fields§
§protocol_type: ProtocolTypeProtocol type classification.
has_oracle_dependency: boolWhether the contract depends on price oracles.
oracle_info: Vec<OracleInfo>Oracle details.
has_flash_loan_risk: boolWhether flash loan attack vectors exist.
flash_loan_info: Vec<String>Flash loan details.
dex_integrations: Vec<DexIntegration>DEX integration patterns found.
lending_patterns: Vec<String>Lending/borrowing patterns.
token_standards: Vec<TokenStandard>Token standard(s) implemented.
staking_patterns: Vec<String>Staking/yield patterns.
risk_factors: Vec<DefiRiskFactor>DeFi-specific risk factors.
Trait Implementations§
Source§impl Clone for DefiAnalysis
impl Clone for DefiAnalysis
Source§impl Debug for DefiAnalysis
impl Debug for DefiAnalysis
Source§impl<'de> Deserialize<'de> for DefiAnalysis
impl<'de> Deserialize<'de> for DefiAnalysis
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 Forget for DefiAnalysis
impl Freeze for DefiAnalysis
impl RefUnwindSafe for DefiAnalysis
impl Send for DefiAnalysis
impl Sync for DefiAnalysis
impl Unpin for DefiAnalysis
impl UnsafeUnpin for DefiAnalysis
impl UnwindSafe for DefiAnalysis
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