You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few pure functions without side effects that are private. I'm not sure why, but it makes building UI's a lot harder because you have to re-build the internal calculations.
Here are the list of pure functions that should be exposed
_calculateMintReward
_calculateStakeReward
The proposal is to copy the pattern the get function. getMintReward getStakeReward
The text was updated successfully, but these errors were encountered:
joeblau
changed the title
Expose pure functions.
Expose pure functions
Oct 6, 2022
There are a few pure functions without side effects that are private. I'm not sure why, but it makes building UI's a lot harder because you have to re-build the internal calculations.
Here are the list of pure functions that should be exposed
_calculateMintReward
_calculateStakeReward
The proposal is to copy the pattern the
get
function.getMintReward
getStakeReward
The text was updated successfully, but these errors were encountered: