Skip to content

Commit

Permalink
add strict order check
Browse files Browse the repository at this point in the history
  • Loading branch information
vm06007 committed Oct 18, 2024
1 parent 680dca6 commit e5c2323
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/DynamicRewardFarm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,12 @@ contract DynamicRewardFarm is TokenWrapper {
);

for (uint256 i; i < _rewardTokens.length; i++) {

require(
_rewardTokens[i] == rewardTokens[i],
"DynamicRewardFarm: INVALID_TOKEN_ORDER"
);

_setRewardRate(
_rewardTokens[i],
_newRewardRates[i]
Expand Down

0 comments on commit e5c2323

Please sign in to comment.