Skip to content

Commit

Permalink
Merge pull request #2634 from get10101/fix/rollover-expired-position
Browse files Browse the repository at this point in the history
fix: Rollover expired position
  • Loading branch information
holzeis authored Jun 19, 2024
2 parents 49afd95 + 9efdbcb commit 5ae2988
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions coordinator/src/node/rollover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,6 @@ impl Node {
.first()
.context("oracle announcement to exist on signed contract")?;

let expiry_timestamp = OffsetDateTime::from_unix_timestamp(
oracle_announcement.oracle_event.event_maturity_epoch as i64,
)?;

if expiry_timestamp < OffsetDateTime::now_utc() {
bail!("Cannot rollover an expired position");
}

(
oracle_announcement.oracle_public_key,
old_offered_contract.fee_rate_per_vb,
Expand Down

0 comments on commit 5ae2988

Please sign in to comment.