Skip to content

Commit

Permalink
Another bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 9, 2025
1 parent c6be7e0 commit f41b980
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ pub struct ExtendExpirationTsV0<'info> {
// no need to pass an extra account here. Just pass the closing time sdei and
// do not change it.
if position.genesis_end <= registrar.clock_unix_timestamp() {
if delegated_position.expiration_ts == 0 {
position.lockup.end_ts
} else {
min(position.lockup.end_ts, delegated_position.expiration_ts)
}
min(proxy_config.get_current_season(registrar.clock_unix_timestamp()).unwrap().end, position.lockup.end_ts)
} else {
position.genesis_end
}
Expand Down

0 comments on commit f41b980

Please sign in to comment.