From 165066f4b80b434b5790cd67ab8b22dfd3265df8 Mon Sep 17 00:00:00 2001 From: Gav Date: Thu, 6 Jul 2023 15:00:00 +0200 Subject: [PATCH] Credit Account --- text/0005-coretime-interface.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/text/0005-coretime-interface.md b/text/0005-coretime-interface.md index 3b44555..8048e64 100644 --- a/text/0005-coretime-interface.md +++ b/text/0005-coretime-interface.md @@ -71,6 +71,21 @@ fn request_revenue_at( Requests that the Relay-chain send a `notify_revenue` message back at or soon after Relay-chain block number `when` whose `until` parameter is equal to `when`. +#### `credit_account` + +Prototype: + +``` +fn credit_account( + who: AccountId, + amount: Balance, +) +``` + +Instructs the Relay-chain to add the `amount` of DOT to the Instantaneous Coretime Market Credit account of `who`. + +It is expected that Instantaneous Coretime Market Credit on the Relay-chain is NOT transferrable and only redeemable when used to assign cores in the Instantaneous Coretime Pool. + #### `assign_core` Prototype: