We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2242f6 commit 9b57128Copy full SHA for 9b57128
lightning/src/offers/offer.rs
@@ -468,6 +468,11 @@ impl Offer {
468
self.contents.is_expired()
469
}
470
471
+ /// Whether the offer has expired given the duration since the Unix epoch.
472
+ pub fn is_expired_no_std(&self, duration_since_epoch: Duration) -> bool {
473
+ self.contents.is_expired_no_std(duration_since_epoch)
474
+ }
475
+
476
/// Returns whether the given quantity is valid for the offer.
477
pub fn is_valid_quantity(&self, quantity: u64) -> bool {
478
self.contents.is_valid_quantity(quantity)
0 commit comments