DHPTSwap
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
4
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
Balances ($0.00)
No balances found for "DHPTSwap"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "DHPTSwap"
ABI
ABI objects
Getter at block 21288767
addressResolver() view returns (address)
0x0000000000000000000000000000000000000000
dao() view returns (address)
0x0000000000000000000000000000000000000000
enableBuy() view returns (bool)
false
enableOracleBuy() view returns (bool)
false
enableOracleSell() view returns (bool)
false
enableSell() view returns (bool)
false
factory() view returns (address)
0x0000000000000000000000000000000000000000
oracle() view returns (address)
0x0000000000000000000000000000000000000000
oracleBlockBias() view returns (uint8)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
dhptFromEnabled(bytes32) view returns (bool)
dhptFromLiquidity(address poolAddress, address fromAddress) view returns (uint256)
dhptWhitelist(address) view returns (uint256)
getLastFeeMintPrice(address poolAddress) view returns (uint256)
maxDhptToSell(address poolAddress) view returns (uint256)
maxSusdToSell(address poolAddress) view returns (uint256)
stableCoins(address) view returns (uint8)
tokenBalanceOf(address tokenAddress) view returns (uint256)
tokenPriceWithSettle(address poolAddress) view returns (uint256)
State-modifying
Events buyDHPT(address poolAddress, address stableCoin, uint256 stableCoinAmount)
enableBuySell(bool _enableBuy, bool _enableSell, bool _enableOracleBuy, bool _enableOracleSell)
enableLiquidity(address[] poolAddresses, bool[] enabled)
initialize(address _addressResolver, address _factory, address _oracle)
oracleBuyDHPT(address poolAddress, address stableCoin, uint256 stableCoinAmount, uint256 blockNumber, uint256 poolPrice, bytes signature)
oracleBuyDHPTFrom(address poolAddress, address fromAddress, uint256 susdAmount, uint256 blockNumber, uint256 poolPrice, bytes signature)
oracleSellDHPT(address poolAddress, address stableCoin, uint256 dhptAmount, uint256 blockNumber, uint256 poolPrice, bytes signature)
oracleSwapDHPT(address poolAddressA, uint256 poolAmountA, uint256 poolPriceA, address poolAddressB, uint256 poolPriceB, uint256 blockNumber, bytes signature)
renounceOwnership()
sellDHPT(address poolAddress, uint256 dhptAmount, address stableCoin)
setAddressResolver(address _addressResolver)
setDao(address _dao)
setFactory(address _factory)
setOracle(address _oracle)
setOracleBlockBias(uint8 _oracleBlockBias)
setStableCoin(address stableCoin, uint8 tokenPrecision)
swapDHPT(address poolAddressA, uint256 poolAmountA, address poolAddressB)
transferOwnership(address newOwner)
whitelistDhpt(address[] addresses, uint256[] amounts)
withdrawToken(address tokenAddress, uint256 amount)
withdrawTokenTo(address tokenAddress, uint256 amount, address toAddress)
BuyDHPT(address fundAddress, address investor, uint256 susdAmount, uint256 dhptAmount, uint256 tokenPrice, uint256 time, bool oracleSwap)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SellDHPT(address fundAddress, address investor, uint256 susdAmount, uint256 dhptAmount, uint256 tokenPrice, uint256 time, bool oracleSwap)
SwapDHPT(address fundAddressA, uint256 tokenPriceA, uint256 amountA, address fundAddressB, uint256 tokenPriceB, uint256 amountB, address investor, uint256 time, bool oracleSwap)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.