PPAgentV2

Verified contract

Active on Ethereum with 545 txns
Deployed by via 0x5d2e3952 at 15665361
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $11,586.04
0x5f3001061571ce4c1154559c478e9240011c48f04a7141c3a2073f7c07315d51
0x7916b769252ab4ed7e24ef05aa77c81be40f6d6d3d9526651aa05f683a5e8d67
0x2cf69a74d3667beec331050d843d04fcd8b9dd0a7f43db4929d7efded8853a32
0x3f91193da98a533006f0f2aea8ccce2467f528e8853b39d5ce93027180a8520c
0xaf53b94985741ef9513e224e2dfd818da7355722ab1820ca9dcbfbbdf7199c70
0xb1b5fedcbfac319b6651243385fbacb6048ab33035313da6f88f0ab5b2f7aa22
0xd58cfba18a56ed0e348eee91716e32065ac5e4f0b470ddbf8794f9668e25b13c
0x6b5bae3e4790446f5a5a19fa51846079adbfcca92f604cef26ab1178ab7e60ba
0xd1755949237d177c0ee0dda92fd5a6c0674c456f94679c74c49ffa136a49536c
0x60b78fd289d90e734b1b5a4142e9f41bab2294fe4d2539bd96ca862066544866

Functions
Getter at block 21421819
CVP(view returns (address)
0x38e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1
VERSION(view returns (string)
2.1.0
getConfig(view returns (uint256 minKeeperCvp_uint256 pendingWithdrawalTimeoutSeconds_uint256 feeTotal_uint256 feePpm_uint256 lastKeeperId_)
(minKeeperCvp_=1000000000000000000000, pendingWithdrawalTimeoutSeconds_=60, feeTotal_=0, feePpm_=0, lastKeeperId_=7)
owner(view returns (address)
0xb258302c3f209491d604165549079680708581cc
Read-only
calculateCompensationPure(uint256 rewardPct_uint256 fixedReward_uint256 blockBaseFee_uint256 gasUsed_pure returns (uint256)
getJob(bytes32 jobKey_view returns (address owneraddress pendingTransferuint256 jobLevelMinKeeperCvpstruct IPPAgentV2ViewerJob detailsbytes preDefinedCalldatastruct IPPAgentV2ViewerResolver resolver)
getJobKey(address jobAddress_uint256 jobId_pure returns (bytes32 jobKey)
getJobRaw(bytes32 jobKey_view returns (uint256 rawJob)
getKeeper(uint256 keeperId_view returns (address adminaddress workeruint256 currentStakeuint256 slashedStakeuint256 compensationuint256 pendingWithdrawalAmountuint256 pendingWithdrawalEndAt)
getKeeperWorkerAndStake(uint256 keeperId_view returns (address workeruint256 currentStake)
jobLastIds(addressview returns (uint256)
jobOwnerCredits(addressview returns (uint256)
workerKeeperIds(addressview returns (uint256)
State-modifying
acceptJobTransfer(bytes32 jobKey_
depositJobCredits(bytes32 jobKey_payable 
depositJobOwnerCredits(address for_payable 
execute_44g58pv(
finalizeRedeem(uint256 keeperId_address to_returns (uint256 redeemedCvp)
initiateJobTransfer(bytes32 jobKey_address to_
initiateRedeem(uint256 keeperId_uint256 amount_returns (uint256 pendingWithdrawalAfter)
registerAsKeeper(address worker_uint256 initialDepositAmount_returns (uint256 keeperId)
registerJob(struct PPAgentV2RegisterJobParams params_struct IPPAgentV2ViewerResolver resolver_bytes preDefinedCalldata_payable returns (bytes32 jobKeyuint256 jobId)
renounceOwnership(
setAgentParams(uint256 minKeeperCvp_uint256 timeoutSeconds_uint256 feePpm_
setJobConfig(bytes32 jobKey_bool isActive_bool useJobOwnerCredits_bool assertResolverSelector_
setJobPreDefinedCalldata(bytes32 jobKey_bytes preDefinedCalldata_
setJobResolver(bytes32 jobKey_struct IPPAgentV2ViewerResolver resolver_
setWorkerAddress(uint256 keeperId_address worker_
slash(uint256 keeperId_address to_uint256 currentAmount_uint256 pendingAmount_
stake(uint256 keeperId_uint256 amount_
transferOwnership(address newOwner
updateJob(bytes32 jobKey_uint16 maxBaseFeeGwei_uint16 rewardPct_uint32 fixedReward_uint256 jobMinCvp_uint24 intervalSeconds_
withdrawCompensation(uint256 keeperId_address to_uint256 amount_
withdrawFees(address to_
withdrawJobCredits(bytes32 jobKey_address to_uint256 amount_
withdrawJobOwnerCredits(address to_uint256 amount_
Events
AcceptJobTransfer(bytes32 indexed jobKey_address indexed to_
DepositJobCredits(bytes32 indexed jobKeyaddress indexed depositoruint256 amountuint256 fee
DepositJobOwnerCredits(address indexed jobOwneraddress indexed depositoruint256 amountuint256 fee
Execute(bytes32 indexed jobKeyaddress indexed jobuint256 keeperIduint256 gasUseduint256 baseFeeuint256 gasPriceuint256 compensationbytes32 binJobAfter
FinalizeRedeem(uint256 indexed keeperIdaddress indexed beneficiaryuint256 amount
InitiateJobTransfer(bytes32 indexed jobKeyaddress indexed fromaddress indexed to
InitiateRedeem(uint256 indexed keeperIduint256 redeemAmountuint256 stakeAmountuint256 slashedStakeAmount
JobUpdate(bytes32 indexed jobKeyuint256 maxBaseFeeGweiuint256 rewardPctuint256 fixedRewarduint256 jobMinCvpuint256 intervalSeconds
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RegisterAsKeeper(uint256 indexed keeperIdaddress indexed keeperAdminaddress indexed keeperWorker
RegisterJob(bytes32 indexed jobKeyaddress indexed jobAddressuint256 indexed jobIdaddress ownerstruct PPAgentV2RegisterJobParams params
SetAgentParams(uint256 minKeeperCvp_uint256 timeoutSeconds_uint256 feePct_
SetJobConfig(bytes32 indexed jobKeybool isActive_bool useJobOwnerCredits_bool assertResolverSelector_
SetJobPreDefinedCalldata(bytes32 indexed jobKeybytes preDefinedCalldata
SetJobResolver(bytes32 indexed jobKeyaddress resolverAddressbytes resolverCalldata
SetWorkerAddress(uint256 indexed keeperIdaddress indexed prevaddress indexed worker
Slash(uint256 indexed keeperIdaddress indexed touint256 currentAmountuint256 pendingAmount
Stake(uint256 indexed keeperIduint256 amountaddress staker
WithdrawCompensation(uint256 indexed keeperIdaddress indexed touint256 amount
WithdrawFees(address indexed touint256 amount
WithdrawJobCredits(bytes32 indexed jobKeyaddress indexed owneraddress indexed touint256 amount
WithdrawJobOwnerCredits(address indexed jobOwneraddress indexed touint256 amount
Constructor
constructor(address owner_address cvp_uint256 minKeeperCvp_uint256 pendingWithdrawalTimeoutSeconds_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AmountGtStake(uint256 wanteduint256 actualStakeuint256 actualSlashedStake
BaseFeeGtGasPrice(uint256 baseFeeuint256 jobMaxBaseFeeGwei
CreditsDepositOverflow(
CreditsWithdrawalUnderflow(
FeeTooBig(
InactiveJob(bytes32 jobKey
InsufficientAmount(
InsufficientAmountToCoverSlashedStake(uint256 wanteduint256 actual
InsufficientJobCredits(uint256 actualuint256 wanted
InsufficientJobOwnerCredits(uint256 actualuint256 wanted
InsufficientJobScopedKeeperStake(
InsufficientKeeperStake(
IntervalNotReached(uint256 lastExecutedAtuint256 intervaluint256 _now
InvalidCalldataSource(
InvalidJobAddress(
JobCallRevertedWithoutDetails(
JobIdOverflow(
JobShouldHaveInterval(
JobWithoutOwner(
KeeperWorkerNotAuthorized(
MissingAmount(
MissingDeposit(
MissingInputCalldata(
MissingJobAddress(
MissingMaxBaseFeeGwei(
MissingResolverAddress(
NoFixedNorPremiumPctReward(
NoPendingWithdrawal(
NonEOASender(
NotSupportedByJobCalldataSource(
OnlyJobOwner(
OnlyKeeperAdmin(
OnlyKeeperAdminOrWorker(
OnlyOwner(
OnlyPendingOwner(
SelectorCheckFailed(
TimeoutTooBig(
WithdrawAmountExceedsAvailable(uint256 wanteduint256 actual
WithdrawalTimoutNotReached(
WorkerAlreadyAssigned(