Skip to content

Commit

Permalink
Update src/Splitter.sol
Browse files Browse the repository at this point in the history
Co-authored-by: sunbreak1211 <[email protected]>
  • Loading branch information
telome and sunbreak1211 authored Dec 7, 2023
1 parent 8282ead commit e7c0754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Splitter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ contract Splitter {
uint256 lot = tot * burn / WAD;
flapper.kick(lot, 0);

if (tot - lot >= RAY) {
uint256 pay = (tot - lot) / RAY;
if (pay > 0) {
FarmLike farm_ = farm;
uint256 pay = (tot - lot) / RAY;
DaiJoinLike(daiJoin).exit(address(farm_), pay);
farm_.notifyRewardAmount(pay);
}
Expand Down

0 comments on commit e7c0754

Please sign in to comment.