AMM

Verified contract

Active on Ethereum with 11,262 txns
Deployed by via 0xf2e827b0 at 10289335
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"

0xdd44d14b3c29cd84172c08b48f0be03a59f67e537cbc7621c55ca161ed1a3fa8
0xf18eca691e8551c9918035d15ee61991db283e3b3d1686d957c4abb11a3da467
0x86d484ea8ff14d94b5f9d7001a068783e6d129215c9b9d386ba09390e1daa01a
0x52cf378b94d84878cb79bff51917ed7e2c10814e8d8312e18e47cd69736c4d10
0x9e2a89ae3889ef71de9793c345742b19965645ad4738a155df3dc5755f1c0302
0x975b2ea690176a6f3f26f06b9e9d26b86d5530cd3b17d22fa55cf6678bc659a2
0x52598ea08a964b4d947c1910d794db4b17b059985d456602958e6be6a355bd3a
0x5efd740131ebab3ef1eef9c109106b248581d089b33a99b659839d80f3651a31
0xbbd7a1691f1d54dd2898c766ba002e9a3782319cf66af3bb088ceb1c53ec4d72
0x20db7aeb0ce245681dbd697edc5a1c5c32f97c1007868740d0a1193de677c3f3

Functions
Getter at block 21258926
emaAlpha2(view returns (int256)
996672212978369384
emaAlpha2Ln(view returns (int256)
-3333336419758231
getGovernance(view returns (struct LibTypesAMMGovernanceConfig)
(3000000000000000, 0, 3327787021630616, 0, 4500000000000000, 3000000000000000)
globalConfig(view returns (address)
0x71e77ffbbfd4418ed47981927738b5425c187f64
 
indexPrice(view returns (uint256 priceuint256 timestamp)
lastFundingRate(view returns (int256)
350928408219039
lastFundingState(view returns (struct LibTypesFundingState)
(1614655570, -3675261522381, 2143345896610, 639627480955092, -510256193249388)
perpetualProxy(view returns (address)
0x05c363d2b9afc36b070fe2c61711280edc214678
positionSize(view returns (uint256)
0
priceFeeder(view returns (address)
0xcfa46e1b666fd91bf39028055d506c1e4ca5ad6e
shareTokenAddress(view returns (address)
0xae694fb9dcd1e6195519c0056b2ab19380b26ff2
Read-only

This contract contains no read-only function objects.

State-modifying
addLiquidity(uint256 amount
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 LibTypesFundingState)
currentMarkPrice(returns (uint256)
currentPremium(returns (int256)
currentPremiumRate(returns (int256)
depositAndAddLiquidity(uint256 depositAmountuint256 amountpayable 
depositAndBuy(uint256 depositAmountuint256 tradeAmountuint256 limitPriceuint256 deadlinepayable 
depositAndSell(uint256 depositAmountuint256 tradeAmountuint256 limitPriceuint256 deadlinepayable 
removeLiquidity(uint256 shareAmount
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 LibTypesFundingState fundingState
UpdateGovernanceParameter(bytes32 indexed keyint256 value
Constructor
constructor(address _globalConfigaddress _perpetualProxyaddress _priceFeederaddress _shareToken
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.