Skip to content

Commit 1b05eb5

Browse files
committed
fix route resp
1 parent 11a41b6 commit 1b05eb5

File tree

1 file changed

+6
-1
lines changed
  • packages/neutron-sdk/src/stargate/dex

1 file changed

+6
-1
lines changed

packages/neutron-sdk/src/stargate/dex/types.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@ pub struct MultiHopSwapRequest {
202202
pub pick_best_route: bool,
203203
}
204204

205+
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
206+
pub struct MHRoute {
207+
pub hops: Vec<String>
208+
}
209+
205210
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
206211
pub struct MultiHopSwapResponse {
207212
pub coin_out: Coin,
208-
pub route: Vec<String>,
213+
pub route: MHRoute,
209214
pub dust: Vec<Coin>,
210215
}
211216

0 commit comments

Comments
 (0)