-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd4716e
commit a06005a
Showing
2 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,14 @@ import {BaseBundler} from "./BaseBundler.sol"; | |
/// @custom:contact [email protected] | ||
/// @notice Bundler that allows to claim token rewards on the Universal Rewards Distributor. | ||
contract URDBundler is BaseBundler { | ||
function claim(address distribution, address account, address reward, uint256 claimable, bytes32[] calldata proof) | ||
function claim(address distributor, address account, address reward, uint256 claimable, bytes32[] calldata proof) | ||
external | ||
payable | ||
{ | ||
require(distribution != address(0), ErrorsLib.ZERO_ADDRESS); | ||
require(distributor != address(0), ErrorsLib.ZERO_ADDRESS); | ||
require(account != address(0), ErrorsLib.ZERO_ADDRESS); | ||
require(account != address(this), ErrorsLib.BUNDLER_ADDRESS); | ||
|
||
IUniversalRewardsDistributor(distribution).claim(account, reward, claimable, proof); | ||
IUniversalRewardsDistributor(distributor).claim(account, reward, claimable, proof); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters