denom
and routes
will be fixed for each instantiated contract.
pub struct Config {
pub owner: Addr,
pub denom: String,
pub first_forward_contract: Addr,
pub routes: Vec<Route>,
pub treasury: Addr,
pub fee: FeeConfig,
pub timeout: Duration,
}
pub struct Route {
pub src_port: String,
pub src_channel: String,
pub destination: Destination,
}
pub enum Destination {
Terminal,
PacketForwardMiddleware,
PacketForwardContract(String),
}
pub struct SwapMsg {
pub receivers: Vec<String>,
}
receivers
must have same length toroutes
inConfig
.- They will be the
emergency_claimer
for each route if the packet is failed on the way.
- They will be the