substrate icon indicating copy to clipboard operation
substrate copied to clipboard

permissionless `bond_extra` in nomination pools

Open Doordashcon opened this issue 3 years ago • 9 comments

Resolves #11638

polkadot address: 12zsKEDVcHpKEWb99iFt3xrTCQQXZMu477nJQsTBBrof5k2h

Doordashcon avatar Nov 03 '22 09:11 Doordashcon

Ideally this action should not be at any cost to pool operators?

Asked this because I had no idea incentives were not offered to pool operators.

Doordashcon avatar Nov 09 '22 20:11 Doordashcon

We discussed this internally and our interim opinion is to not add a new role for this, and not attach it to root either.

If a user allows this, ANYONE should be able to claim their rewards. WDYT @Doordashcon?

(we will soon post this in the polkadot forum as well to get more feedback from the existing pool operators.)

kianenigma avatar Nov 20 '22 14:11 kianenigma

(we will soon post this in the polkadot forum as well to get more feedback from the existing pool operators.)

Sounds good @kianenigma i'll wait till it's up on the forum before implementing changes.

Doordashcon avatar Nov 23 '22 11:11 Doordashcon

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/roles-in-nomination-pools/1169/5

Polkadot-Forum avatar Nov 28 '22 20:11 Polkadot-Forum

@Doordashcon what's the status? do you feel like pushing this to the finish line? I am also happy to take over the branch if you are busy (or preparing for the academy ;)).

kianenigma avatar Dec 12 '22 21:12 kianenigma

I mainly want to see the code-reuse fixed, and next to that a much higher quality of docs. Otherwise the core logic is already there.

kianenigma avatar Dec 12 '22 21:12 kianenigma

@kianenigma I would be glad to have you take over the branch, looking forward to the academy!

Doordashcon avatar Dec 12 '22 21:12 Doordashcon

Does this still need some work?

Doordashcon avatar Jan 24 '23 08:01 Doordashcon

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/the-future-of-polkadot-staking/1848/1

Polkadot-Forum avatar Jan 27 '23 13:01 Polkadot-Forum

ping @Doordashcon?

kianenigma avatar Jan 30 '23 18:01 kianenigma

Working on the changes this week!! @kianenigma, sorry for the late response

Doordashcon avatar Jan 30 '23 19:01 Doordashcon

Hello @kianenigma please take a look, had some misconceptions about transfers which lead to my previous approach somewhat :)

Doordashcon avatar Feb 02 '23 19:02 Doordashcon

/tip large

kianenigma avatar Feb 13 '23 15:02 kianenigma

@Doordashcon I pushed some changes in https://github.com/paritytech/substrate/pull/12608/commits/f6254faffc99ff599da7773cbd9db067761df68e, I left one TODO in the tests for you because I think the previous behavior was wrong. Please double check and amend accordingly?

namely. even if you call bond_extr_other(kian, kian) you should still be able to bond extra some free balance.

kianenigma avatar Feb 13 '23 15:02 kianenigma

cmd queue $ fmt

kianenigma avatar Feb 14 '23 00:02 kianenigma

/cmd queue $ fmt

kianenigma avatar Feb 14 '23 00:02 kianenigma

/cmd queue fmt

kianenigma avatar Feb 14 '23 00:02 kianenigma

@kianenigma updated the test

also noticed a tip of 0 DOTs was given but it says large?

Doordashcon avatar Feb 14 '23 07:02 Doordashcon

@kianenigma updated the test

also noticed a tip of 0 DOTs was given but it says large?

should be resolved

shawntabrizi avatar Feb 15 '23 16:02 shawntabrizi

Ideally this action should not be at any cost to pool operators?

Asked this because I had no idea incentives were not offered to pool operators.

https://github.com/paritytech/substrate/pull/13128/ will resolve this, e.g. operators can factor auto claiming costs into their commission.

rossbulat avatar Feb 19 '23 08:02 rossbulat

We're reviewing this now & aiming to merge tomorrow, so I will go ahead and commit the renaming suggestions.

rossbulat avatar Feb 20 '23 12:02 rossbulat

I've noticed that benchmarks to bond_extra_other do not account for signer and who being different account so an extra read operation is being missed.

Edit: benchmarks fixed.

rossbulat avatar Feb 21 '23 04:02 rossbulat

bot bench $ pallet dev pallet_nomination_pools

rossbulat avatar Feb 21 '23 04:02 rossbulat

bot fmt

rossbulat avatar Feb 21 '23 11:02 rossbulat

@rossbulat https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2423241 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/substrate/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 16-aecb558a-8df6-43ca-bd19-a38e048ce880 to cancel this command or bot cancel to cancel all commands in this pull request.

command-bot[bot] avatar Feb 21 '23 11:02 command-bot[bot]

@rossbulat Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2423241 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2423241/artifacts/download.

command-bot[bot] avatar Feb 21 '23 11:02 command-bot[bot]

bot rebase

rossbulat avatar Feb 22 '23 05:02 rossbulat

Rebased

bot rebase

rossbulat avatar Feb 22 '23 11:02 rossbulat

Rebased