OptimizedTransparentUpgradeableProxy
Verified contract
Proxy
Active on
Ethereum with 126 txns
Unified 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 ($8,032.26)
Native
Value
$0.82
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
ETH | Native | 0.00022 | $3,720.43 |
$0.82 | |
ACRE | ERC-20 | 26.86151M | $0.00029 |
$7,780.44 | |
ZCN | ERC-20 | 2.833472K | $0.059726 |
$169.23 | |
GRT | ERC-20 | 21.653348 | $0.325206 |
$7.04 | |
APW | ERC-20 | 8.213655 | $0.759802 |
$6.24 | |
vBNT | ERC-20 | 7.291013 | $0.777601 |
$5.67 | |
AMP | ERC-20 | 463.08128 | $0.011911 |
$5.52 | |
FXS | ERC-20 | 1.209577 | $4.39 |
$5.31 | |
INDEX | ERC-20 | 1.280567 | $3.75 |
$4.8 | |
COMP | ERC-20 | 0.043006 | $100.62 |
$4.33 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 18884485 | a year ago | | | 0 | 0.0029477973 | |
| 18762990 | a year ago | | | <0.00000001 | 0.0023193487 | |
| 18762357 | a year ago | | | 0 | 0.0026568394 | |
| 18762293 | a year ago | | | 0 | 0.0022591226 | |
| 18762290 | a year ago | | | 0 | 0.0022933917 | |
| 18563966 | a year ago | | | 0 | 0.0037990816 | |
| 18563964 | a year ago | | | 0 | 0.0038251331 | |
| 18563962 | a year ago | | | 0 | 0.0039047846 | |
| 18563960 | a year ago | | | 0 | 0.0039243000 | |
| 18563958 | a year ago | | | 0 | 0.0039518653 |
ABI
ABI objects
Getter at block 21328713
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ethSaleAmount() view returns (struct ICarbonPOLEthSaleAmount)
(100000000000000000000, 220353248525531)
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 admin() returns (address admin_)
implementation() returns (address implementation_)
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
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
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address indexed beacon)
Upgraded(address indexed implementation)
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 _logic, address admin_, bytes _data)
fallback()
receive()
receive()
AccessDenied()
AlreadyInitialized()
InsufficientAmountForTrading()
InsufficientNativeTokenSent()
InvalidAddress()
InvalidPrice()
InvalidToken()
InvalidTrade()
Overflow()
TradingDisabled()
ZeroValue()