Option to buy SMOOTH

Verified contract

Active on Base with 236 txns
Deployed by via 0x38a5a74b at 1996124
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
0x7c3398f212ff1714ef66507e2568492b09cff5b95274eef9133d9a86890303bd
0x256743b2f402298c61ca631d139ea54b0c35a2c6d06c4450461f99df941b5b46
0x051c8084633b124c40f82a4fd983c6fda58d42ca62d9c10124e512de01d86ead
0xda6b94f1e6911a6375e03ed947237832664ec94d8bc0e616d159f445b653f04a
0x82bfc580e960a30447668ef34604a74a35a7e66e52d2e0c1690bd0798c1e9c68
0x4122822ad2f74ea5a9b531d582eb92d1a486047fbe0e460d212577212effd88d
0x6cd1dc0d6ac639b1451bd5ec4bf37fc3c0e1e952c63bb24dd8b883f3e296d682
0xcc5ee16c7b483d72d3a8be6c75ac3ab79a790f35c33a09f746126bd9cededc5e
0x8b961671a407bb0fedfff3cb5603a32ca262b3920077188cd57cdf591c8565d5
0x28529a3c78b221614da465e8c97eb2ef42c6680504be0cec6f1fa77eda5aa751

Functions
Getter at block 22985095
ADMIN_ROLE(view returns (bytes32)
0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DOMAIN_SEPARATOR(view returns (bytes32)
0x63801ba8a82f2ac44d2f801079c052b976611965fa4e1b328cb576227a752f6d
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)
75
gauge(view returns (address)
0xcf4032ef702229edb1f578ce72229e5220da1bf1
getSlopeInterceptForLpDiscount(view returns (int256 slopeint256 intercept)
(slope=-30240, intercept=2419200)
isPaused(view returns (bool)
false
lockDurationForMaxLpDiscount(view returns (uint256)
1814400
lockDurationForMinLpDiscount(view returns (uint256)
604800
maxLPDiscount(view returns (uint256)
20
minLPDiscount(view returns (uint256)
60
name(view returns (string)
Option to buy SMOOTH
pair(view returns (address)
0x1186e8e7328acf84f149be30ea4d3415192a2087
paymentToken(view returns (address)
0x4200000000000000000000000000000000000006
router(view returns (address)
0xe11b93b61f6291d35c5a2bea0a9ff169080160cf
symbol(view returns (string)
oSMOOTH
teamFee(view returns (uint256)
5
totalSupply(view returns (uint256)
26031664799151552862212593
treasury(view returns (address)
0x56be76bd656813fd5ac5a65ebdbe28a1fd56deb3
twapPoints(view returns (uint256)
4
underlyingToken(view returns (address)
0x356bdb09c6d095464a3b009c64920a8bda629060
veDiscount(view returns (uint256)
20
vmFee(view returns (uint256)
5
vmTreasury(view returns (address)
0x56be76bd656813fd5ac5a65ebdbe28a1fd56deb3
voter(view returns (address)
0xab9b68c9e53c94d7c0949fb909e80e4a29f9134a
votingEscrow(view returns (address)
0x0000000000000000000000000000000000000000
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(