Option to buy BVM

Verified contract

Active on Base with 8,730 txns
Deployed by via 0xf99189ab at 1963109
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $11,926.9
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
0x73a411989fa701535bd666ea7be00aef83f6e4483b725afa7483514a93f4fe92
0x08f1a1a175b9074dda8f602946ba69bd0482e334f5767a86307c7caa95e34e12
0x34f3da2a46bda2d7dfe1598768125383dd5ff6c627d3c7856b562eed87b752b2
0xfffb2511f91b98d405df59e6bd57b65a589082d001a4175763d72032a266471c
0x5422e312b76f9b69c31cfff49f5c801b6e398ef7e29aebe318518e71f80eac87
0x3b01a01ecec598586f9832a51249806faa08fa20639d7ae09a7ef400d776f43a
0xb8789d7e1bf5d0a342985cacf4d8b1eaa2494477dedb6802a17354b9cde34fd7
0x89f43f89082732f1c91467e8faa1d2acae77d11e9899120c01bdd117aa556d2d
0xdc765e0a97bda0d3a457d721cf104b717007c59355fcf2e8615f47845d189345
0xcb04ff95cd8018317d967c2f83f532d7751810abf5daa697e477c8b55e2f79f7

Functions
Getter at block 21739848
ADMIN_ROLE(view returns (bytes32)
0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DOMAIN_SEPARATOR(view returns (bytes32)
0xa982a9532ec7f200e8e2393fdd9ed99224a74cae71f389c39aaf9715f9441517
FULL_LOCK(view returns (uint256)
31449600
MAX_DISCOUNT(view returns (uint256)
100
MAX_FEES(view returns (uint256)
50
MAX_TWAP_POINTS(view returns (uint256)
50
MINTER_ROLE(view returns (bytes32)
0xf0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9
MIN_DISCOUNT(view returns (uint256)
0
PAUSER_ROLE(view returns (bytes32)
0x539440820030c4994db4e31b6b800deafd503688728f932addfe7a410515c14c
decimals(view returns (uint8)
18
discount(view returns (uint256)
80
gauge(view returns (address)
0x3f5129112754d4fbe7ab228c2d5e312b2bc79a06
getSlopeInterceptForLpDiscount(view returns (int256 slopeint256 intercept)
(slope=-77586, intercept=6811680)
isPaused(view returns (bool)
false
lockDurationForMaxLpDiscount(view returns (uint256)
5260000
lockDurationForMinLpDiscount(view returns (uint256)
604800
maxLPDiscount(view returns (uint256)
20
minLPDiscount(view returns (uint256)
80
name(view returns (string)
Option to buy BVM
pair(view returns (address)
0x53713f956a4da3f08b55a390b20657edf9e0897b
paymentToken(view returns (address)
0x4200000000000000000000000000000000000006
router(view returns (address)
0x000000000000000000000000000000000000dead
symbol(view returns (string)
oBVM
teamFee(view returns (uint256)
30
totalSupply(view returns (uint256)
670771250680693641742427
treasury(view returns (address)
0x6c2b4f28be49226da31218b7d68886129333047d
twapPoints(view returns (uint256)
4
underlyingToken(view returns (address)
0xd386a121991e51eab5e3433bf5b1cf4c8884b47a
veDiscount(view returns (uint256)
1
vmFee(view returns (uint256)
5
vmTreasury(view returns (address)
0x6c2b4f28be49226da31218b7d68886129333047d
voter(view returns (address)
0xab9b68c9e53c94d7c0949fb909e80e4a29f9134a
votingEscrow(view returns (address)
0x91f85d68b413de823684c891db515b0390a02512
Read-only
allowance(addressaddressview returns (uint256)
balanceOf(addressview returns (uint256)
getDiscountedPrice(uint256 _amountview returns (uint256)
getLockDurationForLpDiscount(uint256 _discountview returns (uint256 duration)
getLpDiscountedPrice(uint256 _amountuint256 _discountview returns (uint256)
getPaymentTokenAmountForExerciseLp(uint256 _amountuint256 _discountview returns (uint256 paymentAmountuint256 paymentAmountToAddLiquidity)
getRoleAdmin(bytes32 roleview returns (bytes32)
getTimeWeightedAveragePrice(uint256 _amountview returns (uint256)
getVeDiscountedPrice(uint256 _amountview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
nonces(addressview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
approve(address spenderuint256 amountreturns (bool)
burn(uint256 _amount
exercise(uint256 _amountuint256 _maxPaymentAmountaddress _recipientreturns (uint256)
exercise(uint256 _amountuint256 _maxPaymentAmountaddress _recipientuint256 _deadlinereturns (uint256)
exerciseLp(uint256 _amountuint256 _maxPaymentAmountaddress _recipientuint256 _discountuint256 _deadlinereturns (uint256uint256)
exerciseVe(uint256 _amountuint256 _maxPaymentAmountaddress _recipientuint256 _deadlinereturns (uint256uint256)
grantRole(bytes32 roleaddress account
mint(address _touint256 _amount
pause(
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setDiscount(uint256 _discount
setFees(uint256 _feeuint256 _vmFee
setGauge(address _gauge
setLockDurationForMaxLpDiscount(uint256 _duration
setLockDurationForMinLpDiscount(uint256 _duration
setMaxLPDiscount(uint256 _lpMaxDiscount
setMinLPDiscount(uint256 _lpMinDiscount
setPairAndPaymentToken(address _pairaddress _paymentToken
setRouter(address _router
setTreasury(address _treasuryaddress _vmTreasury
setTwapPoints(uint256 _twapPoints
setVeDiscount(uint256 _veDiscount
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
unPause(
updateGauge(
Events
Approval(address indexed owneraddress indexed spenderuint256 amount
Exercise(address indexed senderaddress indexed recipientuint256 amountuint256 paymentAmount
ExerciseLp(address indexed senderaddress indexed recipientuint256 amountuint256 paymentAmountuint256 lpAmount
ExerciseVe(address indexed senderaddress indexed recipientuint256 amountuint256 paymentAmountuint256 nftId
PauseStateChanged(bool isPaused
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetDiscount(uint256 discount
SetFees(uint256 newTeamFeeuint256 newVMFee
SetGauge(address indexed newGauge
SetLockDurationForMaxLpDiscount(uint256 lockDurationForMaxLpDiscount
SetLockDurationForMinLpDiscount(uint256 lockDurationForMinLpDiscount
SetMaxLPDiscount(uint256 lpMaxDiscount
SetMinLPDiscount(uint256 lpMinDiscount
SetPairAndPaymentToken(address indexed newPairaddress indexed newPaymentToken
SetRouter(address indexed newRouter
SetTreasury(address indexed newTreasuryaddress indexed newVMTreasury
SetTwapPoints(uint256 twapPoints
SetVeDiscount(uint256 veDiscount
Transfer(address indexed fromaddress indexed touint256 amount
Constructor
constructor(string _namestring _symboladdress _adminaddress _paymentTokenaddress _underlyingTokenaddress _pairaddress _gaugeFactoryaddress _treasuryaddress _voteraddress _votingEscrowaddress _router
Fallback and receive

This contract contains no fallback and receive objects.

Errors
OptionToken_IncorrectPairToken(
OptionToken_InvalidDiscount(
OptionToken_InvalidFee(
OptionToken_InvalidLockDuration(
OptionToken_InvalidTwapPoints(
OptionToken_NoAdminRole(
OptionToken_NoMinterRole(
OptionToken_NoPauserRole(
OptionToken_PastDeadline(
OptionToken_Paused(
OptionToken_SlippageTooHigh(