EmCore

Verified contract

Active on Ethereum with 962 txns
Deployed by via 0xaafbbd7f at 20684914
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $5,268.99
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0xbcd28109037fa60d9f71835a12a803e2be5390d490977ec244fe7277a45a943c
0x3c2ac927f9c56e3f46bec5ff1943320fcbda75420a68b2c81c042ae87e8567f4
0xf318cfcda11cfd1d6cb4d8cf0bf047f75ecc7e5f04d4f3467179c72c5cc7aeff
0x1e207f3536c287e30ea9311edf625dcdac5084294ca1c982dfa6b48124945a7d
0xc14d980cec5f9bee1e4934387cd6e72e20dfb67f81fe113416a8d3f04c6021b7
0x1186a03499978261196a4688d208476f1ba48748c6c09c482754b28991b3a0d4
0x38152536abda725875dbd79a2e2be8b6ba3020acf6220b6c055b2f078c008865
0x83dfe0402a7f69eb7f5d425c91ac799c9ef365e2fb0850eb3cf3e03e0350ad17
0x747bdafe0df653cd6479e1cbd5f762ffab77fe4bdeac90124f346ae7e622035d
0xf10cde1dd5b90e0c25f1a492820e486e97334fb5df67a470d67cbde14f721497

Functions
Getter at block 21247848
DECIMALS(view returns (uint8)
18
FEE_DENOMINATOR(view returns (uint256)
10000
INIT_REAL_TOKEN_RESERVE(view returns (uint256)
793100000000000000000000000
INIT_VIRTUAL_TOKEN_RESERVE(view returns (uint256)
1073000000000000000000000000
K_(view returns (uint256)
1893410036565376370975000000000000000000000000
MAX_FEE(view returns (uint256)
1000
TOTAL_SUPPLY(view returns (uint256)
1000000000000000000000000000
creationFee_(view returns (uint256)
0
emLedger_(view returns (address)
0x0cfd349a07158d165263b9074a6c62404a6d3d4b
externalEntities_(view returns (address)
0x758491c4eef56889d7ae6aac769749b362f74fe8
feeRate_(view returns (uint256)
100
feeTo_(view returns (address)
0x01a9f2a518e9122af3ab95295a2e9746a3396b5e
graduationFeeRate_(view returns (uint256)
200
graduationThreshold_(view returns (uint256)
4999999999999999999
headmaster_(view returns (address)
0xfdcaf6271dc20e1de59728af169d461d6a7b2353
initVirtualEthReserve_(view returns (uint256)
1764594628672298575
owner_(view returns (address)
0x01a9f2a518e9122af3ab95295a2e9746a3396b5e
paused_(view returns (bool)
false
Read-only
calcAmountOutFromEth(address tokenuint256 amountInview returns (uint256 amountOut)
calcAmountOutFromToken(address tokenuint256 amountInview returns (uint256 amountOut)
getPool(address tokenview returns (struct EmCorePool)
getPoolsAll(uint256 offsetuint256 limitview returns (struct EmCorePool[])
pools_(addressview returns (address tokenuint256 tokenReserveuint256 virtualTokenReserveuint256 ethReserveuint256 virtualEthReserveuint256 lastPriceuint256 lastMcapInEthuint256 lastTimestampuint256 lastBlockaddress creatoraddress headmasteruint256 poolIduint256 K)
State-modifying
createToken(string namestring symboluint256 initAmountInstring descriptionstring extendedpayable returns (address tokenuint256 amountOut)
createTokenAndBurnLiquidity(string namestring symboluint256 initAmountInstring descriptionstring extendedpayable returns (address tokenuint256 amountOut)
setCreationFee(uint256 fee
setEmLedger(address _ledger
setExternalEntities(address externalEntities
setFeeRate(uint256 feeRate
setFeeTo(address feeTo
setGraduationFeeRate(uint256 feeRate
setHeadmaster(address headmaster
setInitVirtualEthReserve(uint256 initVirtualEthReserve
setOwner(address owner
setPaused(bool paused
swapEthForTokens(address tokenuint256 amountInuint256 amountOutMinaddress touint256 deadlinepayable returns (uint256 amountOut)
swapTokensForEth(address tokenuint256 amountInuint256 amountOutMinaddress touint256 deadlinereturns (uint256 amountOut)
Events
Buy(address indexed tokenaddress indexed senderuint256 amountInuint256 amountOutaddress indexed to
PriceUpdate(address indexed tokenaddress indexed senderuint256 priceuint256 mcapInEth
Sell(address indexed tokenaddress indexed senderuint256 amountInuint256 amountOutaddress indexed to
TokenCreated(address indexed tokenaddress indexed creator
TokenGraduated(address indexed tokenaddress indexed headmasteruint256 indexed poolIduint256 amountTokenuint256 amountETH
Constructor
constructor(uint256 initVirtualEthReserve
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyGraduated(
DeadlineExceeded(
FeeTooHigh(
Forbidden(
InsufficientOutput(
InvalidAmountIn(
NotEmToken(
Paused(
TooMuchMcap(