Skip to content

Commit ceea8d1

Browse files
committed
refactor - remove active flag (replaced by tags)
1 parent 79c53e5 commit ceea8d1

6 files changed

Lines changed: 1 addition & 10 deletions

File tree

src/amm/camelot_v3/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,6 @@ impl AutomatedMarketMaker for CamelotV3Pool {
480480
tick_bitmap: None,
481481
ticks: None,
482482
factory_address: None, //TODO
483-
active: None,
484483
tag: tag,
485484
})
486485
}

src/amm/curve/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ impl AutomatedMarketMaker for CurvePool {
324324
token_d_symbol: Some(self.coin_symbols[3].clone()),
325325
token_d_decimals: Some(self.coin_decimals[3] as i32),
326326
token_d_balance: Some(self.balances[3].to_string()),
327-
active: None,
328327
tag: tag,
329328
})
330329
}

src/amm/erc_4626/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ impl AutomatedMarketMaker for ERC4626Vault {
218218
withdraw_fee: self.withdraw_fee as i32,
219219
exchange_name: Some(self.exchange_name.as_str().to_string()),
220220
exchange_type: Some(self.exchange_type.as_str().to_string()),
221-
active: None,
222221
tag: tag,
223222
})
224223
}

src/amm/uniswap_v2/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ impl From<UniswapV2Pool> for NewDbUniV2Pool {
101101
reserve_1: pool.reserve_1.to_string(),
102102
fee: pool.fee as i32,
103103
factory_address: Some(pool.factory.to_string()),
104-
active: None,
105104
tag: None,
106105
}
107106
}
@@ -287,7 +286,6 @@ impl AutomatedMarketMaker for UniswapV2Pool {
287286
exchange_name: Some(self.exchange_name.as_str().to_string()),
288287
exchange_type: Some(self.exchange_type.as_str().to_string()),
289288
factory_address: Some(self.factory.to_string()),
290-
active: None,
291289
tag: tag,
292290
})
293291
}

src/amm/uniswap_v3/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ impl From<UniswapV3Pool> for NewDbUniV3Pool {
171171
tick_bitmap: Some(serde_json::to_value(&pool.tick_bitmap).unwrap()),
172172
ticks: Some(serde_json::to_value(&pool.ticks).unwrap()),
173173
factory_address: Some(pool.factory.to_string()),
174-
active: None,
175174
tag: None,
176175
}
177176
}
@@ -594,7 +593,6 @@ impl AutomatedMarketMaker for UniswapV3Pool {
594593
tick_bitmap: None,
595594
ticks: None,
596595
factory_address: Some(self.factory.to_string()),
597-
active: None,
598596
tag: tag,
599597
})
600598
}

src/amm/ve33/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ impl From<Ve33Pool> for NewDbUniV2Pool {
8686
reserve_1: pool.reserve_1.to_string(),
8787
fee: pool.fee as i32,
8888
factory_address: Some(pool.factory.to_string()),
89-
active: None,
9089
tag: None,
9190
}
9291
}
@@ -265,8 +264,7 @@ impl AutomatedMarketMaker for Ve33Pool {
265264
exchange_name: Some(self.exchange_name.as_str().to_string()),
266265
exchange_type: Some(self.exchange_type.as_str().to_string()),
267266
factory_address: Some(self.factory.to_string()),
268-
active: None,
269-
tag: tag,
267+
tag: None,
270268
})
271269
}
272270
}

0 commit comments

Comments
 (0)