StaticPriceSale

Verified contract

Active on Ethereum with 438 txns
Deployed by via 0x40bf107c at 11499093
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "StaticPriceSale"

0x704b89236fc14c4f1f20beb3be4de0e80479cab1043ed91bf8cc3de99dc2af41
0x4a12a054f1727e3bc4ec67a9ae2732898e3d3e6afdbbeedbd6cc8ebb55edbd92
0xd867adaf6b88696e10fcea7266b4107be3c4ca794ff01142052a4d3e4bbafd78
0x8bc94c676ead40927e45419818165783958303a8fe0c942676e2cef05e977502
0xd9f0949737999d1c83b54363e258ea8145b13c725d7e566446af57412f58be4c
0x6428ce9120d25c87001b2b1ca21af65ca8652f043227bfaf5925824141ea8958
0xbcdd80e9d89cfee830a79844d6bd626e963015c00b5d6e051b516f763e66bbd8
0x6d68835d99ca55684bf1e7e286e8c8cc42f7290ca1f4cd81f79db47095bf4428
0xf247bd91687e3d5b98a8214bb71def5f91695f4653f2c5699bef5349518371fb
0x2d7b457c31af5e0a89cd7b4f3d9514cc6d42f9994a2cbf4cb3c01f1d27591b49

Functions
Getter at block 21324287
CAP_CONTROLLER_ROLE(view returns (bytes32)
0xe4fafac5724f0988df7b642491cf8f114c540f1ddf8a5d3ce0c367980650c1ba
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
coinbaseToken(view returns (address)
0x4185cf99745b2a20727b37ee798193dd4a56cdfa
deusToken(view returns (address)
0x3b62f3820e0b035cc4ad602dece6d796bc325325
endBlock(view returns (uint256)
11900000
feeWallet(view returns (address)
0xd9775d818fc23e07ac4b8efd4c58972f7c59bc0f
initialUserMaxCap(view returns (uint256)
10000000000000000000
price(view returns (uint256)
50000000000000000000
spread(view returns (uint256)
5000000000000000
totalMaxCap(view returns (uint256)
3000000000000000000000
totalUsedCap(view returns (uint256)
2999999757592080001540
Read-only
calculatePurchaseReturn(uint256 deusAmountview returns (uint256uint256)
calculateSaleReturn(uint256 coinbaseTokenAmountview returns (uint256uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
users(addressview returns (uint256 usedCapuint256 maxCapbool inited)
State-modifying
buy(uint256 coinbaseTokenAmountuint256 deusAmount
buyFor(address _useruint256 coinbaseTokenAmountuint256 deusAmount
grantRole(bytes32 roleaddress account
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
sell(uint256 coinbaseTokenAmountuint256 deusAmount
sellFor(address _useruint256 coinbaseTokenAmountuint256 deusAmount
setEndBlock(uint256 _endBlock
setFeeWallet(address _feeWallet
setSpreadAndPrice(uint256 _spreaduint256 _price
setTotalMaxCap(uint256 _totalMaxCapuint256 _initialUserMaxCap
setUserMaxCap(address useruint256 userMaxCap
withdraw(address touint256 amount
Events
Buy(address useruint256 coinbaseTokenAmountuint256 deusAmountuint256 feeAmount
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Sell(address useruint256 deusAmountuint256 coinbaseTokenAmountuint256 feeAmount
Constructor
constructor(address _coinbaseTokenaddress _deusTokenaddress _feeWalletuint256 _endBlockuint256 _spreaduint256 _priceuint256 _initialUserMaxCapuint256 _totalMaxCap
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.