Skip to content

Commit 3785ef6

Browse files
committed
feat:made cowammstate fields public
1 parent 196abf4 commit 3785ef6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/evm/protocol/cowamm/state.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ type TokenInfo = (Bytes, U256, U256);
2727
#[derive(Clone, Debug, PartialEq, Eq)]
2828
pub struct CowAMMState {
2929
/// The Pool Address
30-
address: Bytes,
30+
pub address: Bytes,
3131
/// Token A information: (address, liquidity, weight)
32-
token_a: TokenInfo,
32+
pub token_a: TokenInfo,
3333
/// Token B information: (address, liquidity, weight)
34-
token_b: TokenInfo,
34+
pub token_b: TokenInfo,
3535
/// The Swap Fee on the Pool
36-
fee: u64,
36+
pub fee: u64,
3737
///The lp token of the pool
38-
lp_token: Bytes,
38+
pub lp_token: Bytes,
3939
/// The Supply of the lp token
40-
lp_token_supply: U256,
40+
pub lp_token_supply: U256,
4141
}
4242

4343
impl CowAMMState {

0 commit comments

Comments
 (0)