CarbonPOL

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x187cf2bc at 18120401
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 46 additional slots

No balances found for "CarbonPOL"

No transactions found for "CarbonPOL"


Functions
Getter at block 20904766
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
marketPriceMultiply(view returns (uint32)
2
priceDecayHalfLife(view returns (uint32)
864000
roleAdmin(pure returns (bytes32)
0x2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096
version(pure returns (uint16)
1
Read-only
expectedTradeInput(address tokenuint128 tokenAmountview returns (uint128)
expectedTradeReturn(address tokenuint128 ethAmountview returns (uint128)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenPrice(address tokenview returns (struct ICarbonPOLPrice)
tradingEnabled(address tokenview returns (bool)
State-modifying
enableTrading(address tokenstruct ICarbonPOLPrice price
grantRole(bytes32 roleaddress account
initialize(
postUpgrade(bytes data
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setMarketPriceMultiply(uint32 newMarketPriceMultiply
setPriceDecayHalfLife(uint32 newPriceDecayHalfLife
trade(address tokenuint128 amountpayable 
Events
Initialized(uint8 version
MarketPriceMultiplyUpdated(uint32 prevMarketPriceMultiplyuint32 newMarketPriceMultiply
PriceDecayHalfLifeUpdated(uint32 prevPriceDecayHalfLifeuint32 newPriceDecayHalfLife
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokenTraded(address indexed calleraddress indexed tokenuint128 amountuint128 ethReceived
TradingEnabled(address indexed tokenstruct ICarbonPOLPrice price
Constructor
constructor(
Fallback and receive
receive(
Errors
AccessDenied(
AlreadyInitialized(
InsufficientNativeTokenSent(
InsufficientTokenBalance(
InvalidPrice(
InvalidToken(
InvalidTrade(
Overflow(
TradingDisabled(
ZeroValue(