AMM

Verified contract

Active on Ethereum with 4,301 txns
Deployed by via 0xc46fc16c at 9889008
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 5 additional slots
-
variable spans 4 additional slots

No balances found for "AMM"

0x8a2f75be9805cdb76fe4e2386c6e7dda17b6d556838c8eb40931e29ce083461c
0x99af8af39093e4abd2fed792a34bfbfc753e72e80b0f58b95ef18004167b0b74
0x20c59e73836399482ef65ddf1ae3e66910f07009507dbf3632ec171195aa75c6
0x15b28609f4b92e6faad90eef5d47ed7d8566fb5f0dbe46ef345b4c253a075f4a
0xf5ceca3988e15709df08a757f21ee5ca3a967c2bb91f7b409acdfb71ecf3307b
0x4fcc68589b6dfa62b95758b54d55e3bc58892df162dfab26a33966928c90cde3
0xdcdf9336233004855439e725dd03715690e35f6f8048d0b6c1f48d9ea3a69864
0x4ee23fb9124f5351fab24eaefd014ffc722b05a6b3d2f25e0673e86b7951f553
0x5e92e47b230b32d852787741bffc332b19e6a90868a4cdbe90c1d7a002b5f7ff
0xab7b18f603e9dd68108618bf863c8f9f5e92f843427bb3d9dd6f0a193fe219e1

Functions
Getter at block 21286323
emaAlpha2(view returns (int256)
996672212978369384
emaAlpha2Ln(view returns (int256)
-3333336419758231
getGovernance(view returns (struct (uint256, uint256, int256, uint256, int256, int256))
(600000000000000, 150000000000000, 3327787021630616, 0, 5000000000000000, 500000000000000)
 
indexPrice(view returns (uint256 priceuint256 timestamp)
lastFundingRate(view returns (int256)
-302203500435550
lastFundingState(view returns (struct (uint256, int256, int256, uint256, int256))
(1591692681, -3189883726453, -3294286611296, 4106547290690444, -4707897967008)
perpetualProxy(view returns (address)
0xda9f6fb1ef188e081cfbea74ec820a3718e91f21
positionSize(view returns (uint256)
0
priceFeeder(view returns (address)
0x133906776302d10a2005ec2ed0c92ab6f2cbd903
shareTokenAddress(view returns (address)
0x6d5b330523017e2d4ec36ff973a49a440ab763ef
Read-only
isWhitelistAdmin(address accountview returns (bool)
isWhitelisted(address accountview returns (bool)
State-modifying
addLiquidity(uint256 amount
addWhitelistAdmin(address account
addWhitelisted(address account
buy(uint256 amountuint256 limitPriceuint256 deadlinereturns (uint256)
buyAndWithdraw(uint256 tradeAmountuint256 limitPriceuint256 deadlineuint256 withdrawAmount
buyFromWhitelisted(address traderuint256 amountuint256 limitPriceuint256 deadlinereturns (uint256)
createPool(uint256 amount
currentAccumulatedFundingPerContract(returns (int256)
currentAvailableMargin(returns (uint256)
currentFairPrice(returns (uint256)
currentFundingRate(returns (int256)
currentFundingState(returns (struct (uint256, int256, int256, uint256, int256))
currentMarkPrice(returns (uint256)
currentPremium(returns (int256)
currentPremiumRate(returns (int256)
depositAndAddLiquidity(uint256 depositAmountuint256 amount
depositAndBuy(uint256 depositAmountuint256 tradeAmountuint256 limitPriceuint256 deadline
depositAndSell(uint256 depositAmountuint256 tradeAmountuint256 limitPriceuint256 deadline
depositEtherAndAddLiquidity(uint256 amountpayable 
depositEtherAndBuy(uint256 tradeAmountuint256 limitPriceuint256 deadlinepayable 
depositEtherAndSell(uint256 tradeAmountuint256 limitPriceuint256 deadlinepayable 
funding(
removeLiquidity(uint256 shareAmount
removeWhitelisted(address account
renounceWhitelistAdmin(
renounceWhitelisted(
sell(uint256 amountuint256 limitPriceuint256 deadlinereturns (uint256)
sellAndWithdraw(uint256 tradeAmountuint256 limitPriceuint256 deadlineuint256 withdrawAmount
sellFromWhitelisted(address traderuint256 amountuint256 limitPriceuint256 deadlinereturns (uint256)
setGovernanceParameter(bytes32 keyint256 value
settleShare(
updateIndex(
Events
CreateAMM(
UpdateFundingRate(struct (uint256, int256, int256, uint256, int256) fundingState
UpdateGovernanceParameter(bytes32 indexed keyint256 value
WhitelistAdminAdded(address indexed account
WhitelistAdminRemoved(address indexed account
WhitelistedAdded(address indexed account
WhitelistedRemoved(address indexed account
Constructor
constructor(address _perpetualProxyaddress _priceFeederaddress _shareToken
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.