ETHShares
Verified contract
Implementation
Active on
Base 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 48 additional slots
-
variable spans 1 additional slot
Balances ($0.00)
No balances found for "ETHShares"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "ETHShares"
ABI
ABI objects
Getter at block 23926209
ROLE_ACCESS_MANAGER() view returns (uint256)
57896044618658097711785492504343953926634992332820282019728792003956564819968
ROLE_PROTOCOL_FEE_MANAGER() view returns (uint32)
131072
ROLE_SHARES_SUBJECT_MANAGER() view returns (uint32)
65536
ROLE_UPGRADE_MANAGER() view returns (uint256)
28948022309329048855892746252171976963317496166410141009864396001978282409984
features() view returns (uint256)
0
getProtocolFeeDestination() view returns (address)
0x0000000000000000000000000000000000000000
getProtocolFeeInfo() view returns (address feeDestination, uint256 feePercent)
(feeDestination=0x0000000000000000000000000000000000000000, feePercent=0)
getProtocolFeePercent() view returns (uint256)
0
getSharesIssuer() view returns (address nftOwner)
0x0000000000000000000000000000000000000000
getSharesSubject() view returns (struct TheSharesSharesSubject)
(0x0000000000000000000000000000000000000000, 0)
getSharesSupply() view returns (uint256 supply)
0
getSubjectFeeInfo() view returns (address feeDestination, uint256 feePercent)
(feeDestination=0x0000000000000000000000000000000000000000, feePercent=0)
getSubjectFeePercent() view returns (uint256)
0
Read-only
getBuyPrice(uint256 _amount) view returns (uint256)
getBuyPrice(uint256 _supply, uint256 _amount) pure returns (uint256)
getBuyPriceAfterFee(uint256 _amount) view returns (uint256)
getBuyPriceAfterFee(uint256 _supply, uint256 _amount, uint256 _protocolFeePercent, uint256 _subjectFeePercent) pure returns (uint256)
getPrice(uint256 s, uint256 a) pure returns (uint256)
getRole(address operator) view returns (uint256)
getSellPrice(uint256 _amount) view returns (uint256)
getSellPrice(uint256 _supply, uint256 _amount) pure returns (uint256)
getSellPriceAfterFee(uint256 _amount) view returns (uint256)
getSellPriceAfterFee(uint256 _supply, uint256 _amount, uint256 _protocolFeePercent, uint256 _subjectFeePercent) pure returns (uint256)
getSharesBalance(address _holder) view returns (uint256 balance)
isFeatureEnabled(uint256 required) view returns (bool)
isOperatorInRole(address operator, uint256 required) view returns (bool)
isSenderInRole(uint256 required) view returns (bool)
State-modifying
Events buyShares(uint256 amount) payable
buySharesTo(uint256 amount, address beneficiary) payable
postConstruct(address _owner, struct TheSharesSharesSubject _sharesSubject, address _protocolFeeDestination, uint256 _protocolFeePercent, uint256 _subjectFeePercent, uint256 _amount, address _beneficiary) payable
sellShares(uint256 amount)
sellSharesTo(uint256 amount, address beneficiary)
updateFeatures(uint256 _mask)
updateProtocolFeeDestination(address _protocolFeeDestination)
updateRole(address operator, uint256 role)
updateSharesSubject(struct TheSharesSharesSubject _sharesSubject)
updateSharesSubject(struct TheSharesSharesSubject _sharesSubject, address _factory)
ProtocolFeeDestinationUpdated(address oldProtocolFeeDestination, address newProtocolFeeDestination)
RoleUpdated(address indexed operator, uint256 requested, uint256 assigned)
SharesSubjectUpdated(struct TheSharesSharesSubject oldSubject, struct TheSharesSharesSubject newSubject, address factory)
Trade(address indexed beneficiary, address indexed issuer, bool indexed isBuy, uint256 sharesAmount, uint256 paidAmount, uint256 protocolFeeAmount, uint256 subjectFeeAmount, uint256 supply)
constructor(address _owner, struct TheSharesSharesSubject _sharesSubject, address _protocolFeeDestination, uint256 _protocolFeePercent, uint256 _subjectFeePercent, uint256 _amount, address _beneficiary)
This contract contains no fallback and receive objects.
This contract contains no error objects.