Skip to content

Commit

Permalink
Merge pull request #4 from tokenwood/add_auction_fields
Browse files Browse the repository at this point in the history
forwarding changes from services
  • Loading branch information
fleupold authored Mar 8, 2024
2 parents 532daa2 + 2d1ceef commit 5aafa9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/routes/solve/dto/auction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use {
util::{conv, serialize},
},
bigdecimal::BigDecimal,
ethereum_types::{H160, U256},
ethereum_types::{H160, H256, U256},
itertools::Itertools as _,
serde::Deserialize,
serde_with::{serde_as, DisplayFromStr},
Expand Down Expand Up @@ -161,6 +161,7 @@ enum Liquidity {
struct ConstantProductPool {
id: String,
address: H160,
router: H160,
#[serde_as(as = "serialize::U256")]
gas_estimate: U256,
tokens: HashMap<H160, ConstantProductReserve>,
Expand Down Expand Up @@ -209,6 +210,7 @@ impl ConstantProductPool {
struct WeightedProductPool {
id: String,
address: H160,
balancer_pool_id: H256,
#[serde_as(as = "serialize::U256")]
gas_estimate: U256,
tokens: HashMap<H160, WeightedProductReserve>,
Expand Down Expand Up @@ -279,6 +281,7 @@ impl WeightedProductPool {
struct StablePool {
id: String,
address: H160,
balancer_pool_id: H256,
#[serde_as(as = "serialize::U256")]
gas_estimate: U256,
tokens: HashMap<H160, StableReserve>,
Expand Down Expand Up @@ -336,6 +339,7 @@ impl StablePool {
struct ConcentratedLiquidityPool {
id: String,
address: H160,
router: H160,
#[serde_as(as = "serialize::U256")]
gas_estimate: U256,
tokens: Vec<H160>,
Expand Down

0 comments on commit 5aafa9e

Please sign in to comment.