Skip to content

Commit

Permalink
chore(coordinator): Move CollaborativeRevert struct above tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Dec 14, 2023
1 parent 15963d9 commit 9a1ba48
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions coordinator/src/position/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,19 @@ pub fn leverage_short(
}
}

#[derive(Clone, Debug)]
pub struct CollaborativeRevert {
pub channel_id: ChannelId,
pub trader_pubkey: PublicKey,
pub price: f32,
pub coordinator_address: Address,
pub coordinator_amount_sats: Amount,
pub trader_amount_sats: Amount,
pub timestamp: OffsetDateTime,
pub txid: Txid,
pub vout: u32,
}

impl std::fmt::Debug for NewPosition {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("NewPosition")
Expand Down

0 comments on commit 9a1ba48

Please sign in to comment.