Browse Source

Remove Todo because we already have a ticket

Todo already tracked here:
https://github.com/comit-network/hermes/issues/278
refactor/no-log-handler
Daniel Karzel 3 years ago
parent
commit
dce6eb3c3d
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 2
      daemon/src/model/cfd.rs

2
daemon/src/model/cfd.rs

@ -547,8 +547,6 @@ impl Cfd {
}
pub fn profit(&self, current_price: Usd) -> Result<(SignedAmount, Percent)> {
// TODO: We should use the payout curve here and not just the current price!
let closing_price = match (self.attestation(), self.collaborative_close()) {
(Some(_attestation), Some(collaborative_close)) => collaborative_close.price,
(None, Some(collaborative_close)) => collaborative_close.price,

Loading…
Cancel
Save