CarbonPOL
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
4
Slot
XX
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
Balances ($0.00)
No balances found for "CarbonPOL"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "CarbonPOL"
ABI
ABI objects
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 token, uint128 tokenAmount) view returns (uint128)
expectedTradeReturn(address token, uint128 ethAmount) view returns (uint128)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
supportsInterface(bytes4 interfaceId) view returns (bool)
tokenPrice(address token) view returns (struct ICarbonPOLPrice)
tradingEnabled(address token) view returns (bool)
State-modifying
Events enableTrading(address token, struct ICarbonPOLPrice price)
grantRole(bytes32 role, address account)
initialize()
postUpgrade(bytes data)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setMarketPriceMultiply(uint32 newMarketPriceMultiply)
setPriceDecayHalfLife(uint32 newPriceDecayHalfLife)
trade(address token, uint128 amount) payable
Initialized(uint8 version)
MarketPriceMultiplyUpdated(uint32 prevMarketPriceMultiply, uint32 newMarketPriceMultiply)
PriceDecayHalfLifeUpdated(uint32 prevPriceDecayHalfLife, uint32 newPriceDecayHalfLife)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TokenTraded(address indexed caller, address indexed token, uint128 amount, uint128 ethReceived)
TradingEnabled(address indexed token, struct ICarbonPOLPrice price)
constructor()
receive()
AccessDenied()
AlreadyInitialized()
InsufficientNativeTokenSent()
InsufficientTokenBalance()
InvalidPrice()
InvalidToken()
InvalidTrade()
Overflow()
TradingDisabled()
ZeroValue()