-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
Context
When a payer wants to withdraw funds from escrow, they must first call thaw() which starts a waiting period. After the thawing period ends, they can call withdraw() to retrieve their funds.
If the indexer has outstanding fees to collect from an indexing agreement, and the payer starts thawing, the indexer must collect before the thaw completes or risk losing payment.
Proposed Solution
The indexer agent should monitor Thaw events from the PaymentsEscrow contract. When a thaw is detected for a payer with active agreements:
- Calculate outstanding fees owed
- Prioritize collection before
thawEndTimestamp - Alert if collection fails and thaw is imminent
Event to Monitor
From IPaymentsEscrow.sol:
event Thaw(
address indexed payer,
address indexed collector,
address indexed receiver,
uint256 tokens,
uint256 thawEndTimestamp
);Related
- Escrow contract:
packages/horizon/contracts/payments/PaymentsEscrow.sol - DIPS indexer-rs validation: refactor(dips): replace off-chain epoch vouchers with on-chain SignedRCAΒ indexer-rs#942
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
ποΈ Inbox