Skip to content

Feature request: ExperimentalCycles.addFrom #4966

Open
@vporton

Description

@vporton

Among ExperimentalCycles.add<system> provide also ExperimentalCycles.addFrom<system>

let add : (amount : Nat) -> ()
let addFrom : (subaccount: ?Blob, amount : Nat) -> ();

It should work like add but take cycles from the subaccount.

Also:

let balance : (subaccount: ?Blob) -> (amount : Nat)

Currently I write code that ping-pongs cycles between the subaccount and main account, spending transfer fees in the way. (When it is on subaccount, it can be accounted for a particular user. When on the main account, I can call add<system>) That's not good, that I can't do both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions