cya icon indicating copy to clipboard operation
cya copied to clipboard

Make iterating through delegators in staking contract more efficient

Open joshuahannan opened this issue 1 year ago • 0 comments

Issue To Be Solved

There is a lot of code in the staking contract (FlowIDTableStaking) that iterates through a node's delegators and does something. This could be better.

Example

Suggest A Solution

  • Use a utility function that uses an iterator or something like that to cut back on the boilerplate required for iterating through delegators

joshuahannan avatar May 16 '24 13:05 joshuahannan