DegenBaseV1

Verified contract

Active on Base with 3,369 txns
Deployed by via 0x65866f00 at 11511017
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $26.32
ERC-20
Value $0
0xda5777de99f0d8cf694a73f58e1ac9af215805e15e191029cee6a70f405d8cef
0x773a0acfb2f8f312685ea298bbb2a2f0ff6370a7ca68ec95ea9fedc002bb4426
0xaa17aea6103c2c02b3e8bf9efb838b938ac83d05f2e9d400cab70a961b4d36f7
0x23ca5d3b4a1c32051f24c64554b6844dcca6a850aeff3686f8280a9495e0458e
0x2c041594b6a8c43e6f759524e43cd42a0cec4788822aa30c2fd097d262d28e3c
0xece714182b4f946bed2c24807b0a087395dae9cbc21aab805d1657b7f7335ffb
0x4e0b41a5389a8e28f08f34d6c344ca0692473b2a37b51ccc8b9f1f7874fb3a77
0x05b2e206d03274ca8d5d023d82e26cb7749a1df3217eb3bf252e2964a82389a2
0x53af3691b46b6fe12894dd2bbd76548a996babdd6d07af048c803c4fbcc7ccba
0x93e114a4371176c5812f340df0a336138e7aafb450bcb4d59a592dda20f0c713

Functions
Getter at block 22761955
BPS_DIVIDER(view returns (uint256)
10000
Store(view returns (address)
0x23d79d942d107540094317dec0c42af42e2cfb99
UNIT(view returns (uint256)
1000000000000000000
api3Feed(view returns (address)
0x0000000000000000000000000000000000000000
fee(view returns (uint256)
80
fundingTracker(view returns (int256)
0
 
getAllOrders(view returns (struct DataStoreOrderData[] _orders)
 
getLimitOrders(view returns (struct DataStoreOrderData[] _orders)
gov(view returns (address)
0x8ef4cdb1b329307b61ac09213c358c198ce4f264
liquidationThreshold(view returns (uint256)
1
maxLeverage(view returns (uint256)
1000
minMargin(view returns (uint256)
100000000000000
owner(view returns (address)
0x8ef4cdb1b329307b61ac09213c358c198ce4f264
pyth(view returns (address)
0x8250f4af4b972684f7b336503e2d6dfedeb1487a
router(view returns (address)
0xc5686ee47df7b910ac5325a177532e2feb79200b
size(view returns (uint256)
10000
treasury(view returns (address)
0x6435fe9901ddacac4d45fd46e04d0640776379c2
utilizationMultiplier(view returns (uint256)
100
Read-only
_getPythPrice(bytes32 priceFeedIdview returns (uint256uint256)
checkLiquidation(uint256 orderIdview returns (bool)
currencyData(address tokenview returns (struct DataStoreCurrenciesData currencies)
getAccruedFunding(uint256 marketIdaddress currencyuint256 intervalsview returns (int256)
getEarning(uint256 idview returns (uint256 earninguint256 pnlbool)
getLiquidateablePositions(uint256[] orderIdsview returns (uint256[] isLiquidatable)
getMarket(uint256 idview returns (struct DataStoreMarketData market)
getMaxMargin(address tokenview returns (uint256)
getMinMargin(address tokenview returns (uint256)
getOILong(uint256 marketIdaddress currencyview returns (uint256)
getOIShort(uint256 marketIdaddress currencyview returns (uint256)
getOrder(uint256 idview returns (struct DataStoreOrderData _orders)
getOrderUPL(uint256 idview returns (int256 uplbool isNegative)
getPriceBytes(bytes[] priceUpdateDataview returns (uint256)
getPythPrice(uint256 marketIdview returns (uint256)
getUserOrdersFromStore(address userview returns (struct DataStoreOrderData[] _users)
getUserPositionsWithUpls(address userview returns (struct DataStoreOrderData[] _positionsint256[] _upls)
getUtilization(address tokenview returns (uint256)
poolShare(uint256 amountview returns (uint256)
State-modifying
addMargin(uint256 iduint256 amountbytes[] priceUpdateDatapayable 
closeTrade(uint256 orderIdbytes[] priceUpdateDatapayable 
link(address _store
liquidateOrders(uint256 orderIdbytes[] priceUpdateDatapayable 
processLimitOrders(uint256[] orderIdsbytes[] priceUpdateDatapayable 
recoverEther(address _topayable 
renounceOwnership(
setKeeper(address _g
setLiquidation(uint256 t
setPrices(address senderbytes[] priceUpdateDatapayable 
setPyth(address _p
setRouter(address _router
setTreasury(address _treasury
setUtilizaitonMultiplier(uint256 val
submitTrade(struct DataStoreOrderData orderDatabytes[] priceUpdateDatapayable 
transferOwnership(address newOwner
updateShare(uint256 amount
Events
AddMargin(uint256 indexed idaddress indexed useruint256 marginuint256 newMarginuint256 newLeverage
ClosePosition(uint256 orderIdaddress useruint256 entryuint256 exitaddress currencyuint256 marketIdbool isLonguint256 leverageuint256 marginbool isActiveuint256 pnluint256 earningbool isLiquidated
FeeGenerated(uint256 amountaddress indexed currencyuint256 timestamp
LiquidatedOrder(uint256 orderIdaddress useruint256 entryuint256 exitaddress currencyuint256 marketIdbool isLonguint256 marginuint256 takeProfituint256 stopLossuint256 pnluint256 earning
OpenOrder(uint256 indexed positionIdaddress indexed useruint256 indexed marketId
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PositionCreated(uint256 orderIdaddress indexed useraddress indexed currencyuint256 marketIduint256 entrybool isLonguint256 leverageuint256 orderTypeuint256 marginuint256 takeProfituint256 stopLossbool isActive
ReduceMargin(uint256 indexed idaddress indexed useruint256 marginuint256 newMarginuint256 newLeverage
closedPositionsData(uint256 orderIdaddress useruint256 entryuint256 exituint256 marginaddress currencyuint256 takeProfituint256 stopLoss
Constructor
constructor(address pythContract
Fallback and receive
fallback(
receive(
Errors

This contract contains no error objects.