Skip to content

Commit

Permalink
Update oracle.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn-gif committed Sep 21, 2023
1 parent 480cd1f commit 7eed605
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/model/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ func (rdb *RelDB) GetOraclesByOwner(owner string) (oracleconfigs []dia.OracleCon
}

oracleconfig.ExpiringDate = oracleconfig.LastOracleUpdate.Add(time.Duration(60 * time.Hour * 24))
if oracleconfig.ExpiringDate.Before(time.Now()) {
oracleconfig.Expired = true
}

oracleconfigs = append(oracleconfigs, oracleconfig)
}
Expand Down

0 comments on commit 7eed605

Please sign in to comment.