Entropy-Foundation / aptos-core

Aptos is a layer 1 blockchain built to support the widespread use of blockchain through better technology and user experience.
https://aptoslabs.com
Other
0 stars 2 forks source link

Enable parties to delegate stake for others #117

Closed isaacdoidge closed 1 week ago

isaacdoidge commented 2 weeks ago

As a user, I want to be able to delegate stake on behalf of others. I would like to achieve this via a function that looks similar to the below:

public entry fun add_delegators(funder: &signer, delegator_addresses: vector<address>, principle_stakes: vector<u64>)

delegator_addresses should specify the addresses for which the amount specified at the corresponding index of principle_stakes should be delegated. The sum of principle_stakes should be deducted from my account.

sjoshisupra commented 1 week ago

Fixed in #118