AMM

Verified contract

Active on Ethereum with 157 txns
Deployed by via 0x95b3765e at 10740760
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"

0x9494833d340b538255fef7568d3e967dfeccdac75df1883af63d64849a294dac
0x45fd3cd415a2c4c0fa56462aaa5c97900a9e53f00a9cfa51d17f16c53c80705d
0xbb360869d22963222c3f0d59796c0c962905fe4721d3cb0303c3befeb7f627de
0xc2bf6d63d3b414d324b087994391c407ebfde11b7d8e1ff14165a430e9eed7b8
0x3d0506a0baa95674342d9640c10ae684c3b933e87c0e5fc8cd7335f61e9f1e90
0x2428205a83098f8a86d7d3e621848351ee04dec64e4631d39bd76d89b42de0fd
0x851688e81528dab5b217e2991ea00ff10bcf04061b56061101fd8065441d2865
0xb8a2a45ee9a9ce5cb841e01ca7cf34f7b5ccbae54158b533b03fa6c913cc920a
0x85b4736c4a6dd5d07f7dece20a1d67370472340fbbdaea9dc415397026113c42
0x5aad87b6bc3e0b1a0665cbd5d58f5ba1f481d4ff258c19bbc26fa90be050af14

Functions
Getter at block 21171307
emaAlpha2(view returns (int256)
996672212978369384
emaAlpha2Ln(view returns (int256)
-3333336419758231
getGovernance(view returns (struct LibTypesAMMGovernanceConfig)
(3000000000000000, 0, 3327787021630616, 0, 14000000000000000, 10000000000000000)
globalConfig(view returns (address)
0x71e77ffbbfd4418ed47981927738b5425c187f64
 
indexPrice(view returns (uint256 priceuint256 timestamp)
lastFundingRate(view returns (int256)
4000000000000008
lastFundingState(view returns (struct LibTypesFundingState)
(1614134521, 1497066124921626, 11429556891734344, 51500707200758685, 50104487419047184)
perpetualProxy(view returns (address)
0x298badda419eece0abe86fedc2f0677a7e8e35a2
positionSize(view returns (uint256)
0
priceFeeder(view returns (address)
0xa2fe15e40f5ccc480b545eb8ffabdcdb84a3d3dc
shareTokenAddress(view returns (address)
0xf377810bffc83df177d7f992a8807943ea0a286f
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.