pub struct Signal {
pub lex_price: Uint<256, 4>,
pub step: Option<usize>,
pub tick: Signed<24, 1>,
pub sqrt_price_x96: Uint<160, 3>,
pub manager: Address,
pub pool: PoolKey,
pub fetcher: Address,
pub current_value: f64,
pub controller: Address,
}Expand description
A signal that is passed to a Strategy to provide information about the current state of the pool.
Fields§
§lex_price: Uint<256, 4>Current theoretical value of the pool.
step: Option<usize>Current step of the simulation.
tick: Signed<24, 1>Current tick of the pool.
sqrt_price_x96: Uint<160, 3>Current price of the pool.
manager: AddressPool manager.
pool: PoolKeyPool key.
fetcher: AddressFetcher.
current_value: f64Current value of the price feed.
controller: AddressThe arena controller.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more