FarmKeeper

Verified contract

Active on Ethereum with 20,295 txns
Deployed by via 0x201fda1a at 20922006
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 2 additional slots
ERC-20
Value $4,469.57
ERC-20
Value $1,762.19
ERC-20
Value $873.2
ERC-20
Value $847.03
ERC-20
Value $348.41
ERC-20
Value $137.03
ERC-20
Value $109.24
ERC-20
Value $102.26
ERC-20
Value $20.72
ERC-20
Value $10.33
0x40e9b2c723d55d45d236c03c9ade6273f09c4de1f2354bd644c079db393cdc90
0x516f867c1940498532df6865b12aafffd5b7203375ef3d5200a39a181480ac68
0x3c236b86aa403fd64829165025b386dbe69d72b2a84161c41b382726bfea081b
0x9a87d1bd948914084df83eb95ea644420a4efd3a0decf9666b51282b5cd614a2
0x655dee2e2fd06b81c4453f629a3d10c18ec1ca149b4450cf254b5da01277c890
0x06868261249f071c3ae6c983a5a5a3966a59fd5e2f144a4b0249246484b9cb95
0x0c10ea1b96d7c444aa4eac96c44213174a0a1582a2cc934073f40c20005981ef
0x6f9271b84b93523ab120cdd1286789eef11e902989fb486094c169990437a581
0x7b382a910997da522bb4b93ddd79c76e0f51642ccc9fac532d2805afed3a0f68
0x1626ab42e14d12a29eaad432f381dd00c70989f680aca5a75864b7cc1115e591

Functions
Getter at block 21244568
authority(view returns (address)
0x598d291d3e8f483790ebac729db148a88e8c3780
buyAndBurn(view returns (address)
0x060e990a7e760f211447e76a53ff6e1be2f3bdd3
 
farmViews(view returns (struct FarmView[])
incentiveToken(view returns (address)
0x6532b3f1e4dbff542fbd6befe5ed7041c10b385a
initialized(view returns (bool)
true
isConsumingScheduledOp(view returns (bytes4)
0x00000000
startTime(view returns (uint256)
1728432000
totalAllocPoints(view returns (uint256)
22550
Read-only
farmView(address idview returns (struct FarmView)
getAmountsForLiquidity(address iduint128 liquidityview returns (address token0address token1uint256 amount0uint256 amount1)
getFarmId(address tokenAaddress tokenBuint24 feepure returns (address)
getLiquidityForAmount(address idaddress tokenuint256 amountview returns (address token0address token1uint128 liquidityuint256 amount0uint256 amount1)
protocolFees(address tokenview returns (uint256 amount)
userView(address idaddress userIdview returns (struct UserView)
State-modifying
collectProtocolFee(address token
deposit(address iduint128 liquidityuint256 deadline
enableFarm(struct FarmKeeperAddFarmParams params
initialize(
massUpdateFarms(bool collectFees
multicall(bytes[] datareturns (bytes[] results)
setAllocation(address iduint256 allocPoints
setAuthority(address newAuthority
setPriceTwa(address iduint32 mins
setProtocolFee(address iduint256 fee
setSlippage(address iduint256 slippage
updateFarm(address idbool collectFees
withdraw(address iduint128 liquidityuint256 deadline
Events
AllocationUpdated(address indexed iduint256 allocPoints
AuthorityUpdated(address authority
Deposit(address indexed idaddress indexed useruint128 liquidityuint256 amountToken0uint256 amountToken1
FarmEnabled(address indexed idstruct FarmKeeperAddFarmParams params
FeeDistributed(address indexed idaddress indexed useraddress indexed tokenuint256 amount
IncentiveTokenDistributed(address indexed idaddress indexed useruint256 amount
PriceTwaUpdated(address indexed iduint32 newTwa
ProtocolFeeUpdated(address indexed iduint256 newFee
ProtocolFeesCollected(address indexed tokenuint256 amount
SlippageUpdated(address indexed iduint256 newSlippage
Withdraw(address indexed idaddress indexed useruint256 liquidityuint256 amountToken0uint256 amountToken1
Constructor
constructor(address incentiveTokenAddressaddress universalBuyAndBurnAddressaddress manager
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessManagedInvalidAuthority(address authority
AccessManagedRequiredDelay(address calleruint32 delay
AccessManagedUnauthorized(address caller
AddressEmptyCode(address target
AddressInsufficientBalance(address account
AlreadyInitialized(
DuplicatedFarm(
FailedInnerCall(
InvalidAllocPoints(
InvalidFarmId(
InvalidFee(
InvalidIncentiveToken(
InvalidLiquidityAmount(
InvalidPriceTwa(
InvalidSlippage(
InvalidTokenId(
MathOverflowedMulDiv(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token
TotalAllocationCannotBeZero(