Skip to content

Instantly share code, notes, and snippets.

@Shashank-In
Created September 21, 2022 05:35
Show Gist options
  • Save Shashank-In/6dec6a63ba229f85d91e7cd40253627a to your computer and use it in GitHub Desktop.
Save Shashank-In/6dec6a63ba229f85d91e7cd40253627a to your computer and use it in GitHub Desktop.
function _update(
uint128 baseBalance,
uint128 fyBalance,
uint112 _baseCached,
uint112 _fyTokenCached
) private {
....
cumulativeBalancesRatio +=
(scaledFYTokenCached / _baseCached) *
timeElapsed;
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment