Helper to get funding UXTO info
@@ -474,4 +474,10 @@ library DepositUtils {
require(remainingTerm(_d) == 0 || inCourtesy, "Only TDT holder can redeem unless deposit is at-term or in COURTESY_CALL");
return lotSizeTbtc(_d);
}
+
+ /// @notice Returns information associated with the funding UXTO.
+ /// @return A tuple of (uxtoSizeBytes, fundedAt, uxtoOutpoint)
+ function getFundingInfo(Deposit storage _d) public view returns (bytes8 utxoSizeBytes, uint256 fundedAt, bytes memory utxoOutpoint) {
+ return (_d.utxoSizeBytes, _d.fundedAt, _d.utxoOutpoint);
+ }
}
