Compute circulating supply in cron #777
Replies: 4 comments 9 replies
-
Alternative: we could, alternatively, store this information in the reward actor. But given that we're already handling pledge in the power actor, I feel that there's little point. |
Beta Was this translation helpful? Give feedback.
-
It looks like this can be computed purely in terms of:
If/when we remove market pledge from this calculation (insignificant anyways), we should be able to compute this from information already available. I.e., |
Beta Was this translation helpful? Give feedback.
-
@jennijuju @Stebalien Can I pick this one up.....please ? |
Beta Was this translation helpful? Give feedback.
-
So I'm pretty sure we've considered this before (maybe just in my head?). My biggest opposition to this idea is the introduction of the details of the vesting schedule to the actors (or even the FVM) code. That is very, very specific to Filecoin mainnet, and rips up the idea that these codebases should be "generic system actors". Having said that, I'd love to get this out of clients :P |
Beta Was this translation helpful? Give feedback.
-
Filecoin uses the current estimated circulating supply to compute certain penalties and pledges. Unfortunately, this value is computed by the client every epoch which means:
network::total_fil_circ_supply
).Proposal:
CurrentTotalPower
method. We're already returning pledge collateral here, so this won't matter too much.This will actually reduce gas fees in most cases as it'll save a syscall. Any method that calls this sycall already calls
CurrentTotalPower
on the power actor.Beta Was this translation helpful? Give feedback.
All reactions