Skip to content

Commit

Permalink
chore: fix rate
Browse files Browse the repository at this point in the history
  • Loading branch information
addiaddiaddi committed Nov 25, 2024
1 parent 4bf6bcb commit f429561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/token/fstMOVE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contract fstMOVE is IERC20, IERC20Metadata, IERC20Errors, AccessControlDefaultAd
}


uint256 rate = (nextShareRate_ - lastShareRate_) * block.timestamp / (updateEnd_ - updateStart_) + lastShareRate_;
uint256 rate = (nextShareRate_ - lastShareRate_) * (block.timestamp - updateStart_) / (updateEnd_ - updateStart_) + lastShareRate_;

return rate;
}
Expand Down

0 comments on commit f429561

Please sign in to comment.