CarbonPOL
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
5
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 44 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 21328713
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ethSaleAmount() view returns (struct ICarbonPOLEthSaleAmount)
(100000000000000000000, 0)
marketPriceMultiply() view returns (uint32)
2
minEthSaleAmount() view returns (uint128)
10000000000000000000
priceDecayHalfLife() view returns (uint32)
864000
roleAdmin() pure returns (bytes32)
0x2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096
version() pure returns (uint16)
2
Read-only
amountAvailableForTrading(address token) view returns (uint128)
expectedTradeInput(address token, uint128 targetAmount) view returns (uint128)
expectedTradeReturn(address token, uint128 sourceAmount) 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)
enableTradingETH(struct ICarbonPOLPrice price)
grantRole(bytes32 role, address account)
initialize()
postUpgrade(bytes data)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setEthSaleAmount(uint128 newEthSaleAmount)
setMarketPriceMultiply(uint32 newMarketPriceMultiply)
setMinEthSaleAmount(uint128 newMinEthSaleAmount)
setPriceDecayHalfLife(uint32 newPriceDecayHalfLife)
trade(address token, uint128 targetAmount) payable
EthSaleAmountUpdated(uint128 prevEthSaleAmount, uint128 newEthSaleAmount)
Initialized(uint8 version)
MarketPriceMultiplyUpdated(uint32 prevMarketPriceMultiply, uint32 newMarketPriceMultiply)
MinEthSaleAmountUpdated(uint128 prevMinEthSaleAmount, uint128 newMinEthSaleAmount)
PriceDecayHalfLifeUpdated(uint32 prevPriceDecayHalfLife, uint32 newPriceDecayHalfLife)
PriceUpdated(address indexed token, struct ICarbonPOLPrice price)
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 sourceAmount, uint128 targetAmount)
TradingEnabled(address indexed token, struct ICarbonPOLPrice price)
constructor(address initBnt)
receive()
AccessDenied()
AlreadyInitialized()
InsufficientAmountForTrading()
InsufficientNativeTokenSent()
InvalidAddress()
InvalidPrice()
InvalidToken()
InvalidTrade()
Overflow()
TradingDisabled()
ZeroValue()