AMM

Verified contract

Active on Ethereum with 514 txns
Deployed by via 0xa478085a at 9872183
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"

0xe0a012d830090fd3ae1029d79b222fc77e3117d09815cdb81874c8c9ac9ea419
0x8df3eef4cce4874cc082478257fc5fff372257b4149e2bd2b48fb4bc13f46868
0x71f22c683ff516c4f1407d200fcbfda89288d0658ced06a7da6d77bc5cde7210
0x75ce6cdfbbd35e22d1a91be7a293c7c6f2831d4f623b2b731679ae5577bd9ccd
0x3421738bf002147f6396f89e9f5d8a36c3e4b57ca2f004bffa586aa5faa79548
0x251af8a6d29f47a6590065453e627a3524846f2f3597cc5e4580d4aaee4edc84
0xeba076370c62b360141e42670b8b741c7cb226c0b0867490e7d662634f276f96
0xe8fdb527fd3ceaf638ca65580b1f451723bf140c010d8cfeb779e2a7bea2cced
0xf10ff7a6ab4a9f686cb847950b4f489c66960f4e2953322c6fbf927a4464802f
0xa418c279e1e535289ec38548c9d6c1860f48e40ef6e0d399d4d64b29cfbd5790

Functions
Getter at block 21400515
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)
3953922278308918
lastFundingState(view returns (struct (uint256, int256, int256, uint256, int256))
(1587117413, 31204636812007, 25884456651911, 5811609416260157, 22913022704486)
perpetualProxy(view returns (address)
0xce80b33cafac377912c5962216659c97555f76c4
positionSize(view returns (uint256)
0
priceFeeder(view returns (address)
0x133906776302d10a2005ec2ed0c92ab6f2cbd903
shareTokenAddress(view returns (address)
0x9758b032adbc3e57c73e3550402c81ebd55b9008
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.