Allow to withdraw $KLAY from temporary account #653
Merged
+168
−21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Request created by temporary account can be canceled. In both VRF
orakl/contracts/src/v0.1/VRFCoordinator.sol
Lines 364 to 372 in 8d4657c
orakl/contracts/src/v0.1/RequestResponseCoordinator.sol
Lines 518 to 529 in 8d4657c
cancelRequestFunction
orakl/contracts/src/v0.1/CoordinatorBase.sol
Lines 124 to 137 in 8d4657c
orakl/contracts/src/v0.1/RequestResponseCoordinator.sol
Lines 554 to 557 in 8d4657c
orakl/contracts/src/v0.1/VRFCoordinator.sol
Lines 422 to 425 in 8d4657c
When the request is canceled, the request itself cannot be used to charge for service fee. In case of permanent account, we have a
witdthraw
functionorakl/contracts/src/v0.1/Prepayment.sol
Lines 366 to 377 in 8d4657c
Prepayment
contract, nobody can withdraw them, not even owner of the contract.This PR allows to withdraw $KLAY from temporary account by owner of the account which requested for a service but the request was eventually canceled.
Type of change
Checklist before requesting a review