BribeVault

Verified contract

Active on Ethereum with 70 txns
Deployed by via 0x8b9be3a7 at 17621913
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $129,349.54
ERC-20
Value $24,314.94
ERC-20
Value $10,456.16
ERC-20
Value $4,744.53
ERC-20
Value $2,289.92
ERC-20
Value $95.79
 (#0)
ERC-1555
--
0x8f371d2e8af4df584fb659cf1700e3f8bdfb491a99d0fa2b41e71e6b553422da
0x99d9a64c8cba7492f70d68f8f1af1662d17503cef0677a797383ae0fe84800e0
0xf177f12c653cfcf96c3a4b955d573ad601208ceefccaf6992bbdc1e9b89e1502
0x3510b699b0ca63bbd9a0e41e2cac873222d290dac48af90d17134710710b6b55
0xe626c468dccd206b5ed862e60755bf18f7384639a9db0fb060c5edc467291c71
0x062c6d6000f58e0aaa37b2bbb27c268263c53a6f4f663f4a941dbb1400c97874
0xd47acb38888eef5b98b900b47db07152581636e0de864fec01bbde62060a6bf0
0x01d2e50a77ca0f43bea4610d39e7e986e29c7683265d60ab6add1597911c89b6
0xbcd1784a1198b192123968200405a32e94ba3f42bb37bc6a40ad768bc745b809
0x364dd9caf8e2062822ac1c161f1f6e37263709f2f49b2ef1d80320e970a63bbf

Functions
Getter at block 20862309
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DEPOSITOR_ROLE(view returns (bytes32)
0x8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a9
FEE_DIVISOR(view returns (uint256)
1000000
FEE_MAX(view returns (uint256)
100000
PERMIT2(view returns (address)
0x000000000022d473030f116ddee9f6b43ac78ba3
distributor(view returns (address)
0xa9b08b4ceec1ef29edec7f9c94583270337d6416
fee(view returns (uint256)
40000
feeRecipient(view returns (address)
0xa52fd396891e7a74b641a2cb1a6999fcf56b077e
Read-only
bribes(bytes32view returns (address tokenuint256 amount)
generateBribeVaultIdentifier(address _marketbytes32 _proposaluint256 _proposalDeadlineaddress _tokenpure returns (bytes32 id)
generateRewardIdentifier(address _marketaddress _tokenuint256 _proposalDeadlinepure returns (bytes32 id)
getBribe(bytes32 bribeIdentifierview returns (address tokenuint256 amount)
getBribeIdentifiersByRewardIdentifier(bytes32 rewardIdentifierview returns (bytes32[])
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
rewardForwarding(addressview returns (address)
rewardToBribes(bytes32uint256view returns (bytes32)
rewardTransfers(bytes32view returns (uint256 feeAmountuint256 distributorAmountTransferreduint256 distributorAmountReceived)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
depositBribe(struct CommonDepositBribeParams _dp
emergencyWithdraw(address tokenuint256 amount
grantDepositorRole(address depositor
grantRole(bytes32 roleaddress account
renounceRole(bytes32 roleaddress account
revokeDepositorRole(address depositor
revokeRole(bytes32 roleaddress account
setDistributor(address _distributor
setFee(uint256 _fee
setFeeRecipient(address _feeRecipient
setRewardForwarding(address to
transferBribes(bytes32[] rewardIdentifiers
Events
DepositBribe(address indexed marketbytes32 indexed proposaluint256 indexed deadlineaddress tokenaddress briberuint256 amountuint256 totalAmountuint256 maxTokensPerVoteuint256 periodIndex
EmergencyWithdrawal(address indexed tokenuint256 amountaddress admin
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetDistributor(address _distributor
SetFee(uint256 _fee
SetFeeRecipient(address _feeRecipient
SetRewardForwarding(address fromaddress to
TransferBribe(bytes32 indexed rewardIdentifieraddress indexed tokenuint256 feeAmountuint256 distributorAmount
Constructor
constructor(uint256 _feeuint256 _feeMaxaddress _feeRecipientaddress _distributor
Fallback and receive

This contract contains no fallback and receive objects.

Errors
BribeAlreadyTransferred(
InvalidAddress(
InvalidAmount(
InvalidArray(
InvalidBriber(
InvalidDistributor(
InvalidFee(
InvalidFeeRecipient(
InvalidMaxFee(
InvalidRewardIdentifier(
InvalidToken(
NotDepositor(