filecoin-project / filplus-backend

Other
2 stars 1 forks source link

Remove pending allocation #202

Closed Filip-L closed 2 months ago

Filip-L commented 2 months ago

Remove Pending Allocation

Endpoint: [POST] verifier/application/remove_pending_allocation

Description: This feature allows allocators to undo a pending DataCap allocation before the proposal. It helps correct any mistakes and ensures the accuracy of the allocation process.

The verifier/application/remove_pending_allocation endpoint receives query parameters (VerifierActionsQueryParams) to check if the caller is an allocator. Based on these query parameters, the endpoint performs the following checks:

If the conditions are met, the endpoint performs the following actions:

For the First Allocation:

For the Refill Allocation:

Deployment Considerations: No special actions are required.