UniMexMargin

Verified contract

Active on Ethereum with 358 txns
Deployed by via 0xfe84b002 at 11615842
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $53,990.5
0xb52a535450b4a1ca914f4a2b802f910334e77a4099722cb0f87ca7aab4429fd6
0xc580f621323f20d589941a7d09f6f2c8a305032b65f619e5a2f2274244ca7a68
0x2a0a06d4c4554c5e8a0a561721138caf1f84275f974dc9620bf3a047f7ac546d
0xb28baaeba1f65a649be363d10f433a365d8ce4086f91d6c0b6ec97186556496f
0xd9de3452c66dda541d3ce7925d9c577586e49b55f72a297e77a5775b90f03fef
0x76af90b75957b3e6d9d4e3251a0dce2dfd158965520e45b139f28a58a81c086f
0x330a2810c443fc8e97b524a3dd383a455e4ed41dbcc25061949e7a0b37d5a30a
0xdc73456430a263f8a1a075167b84076bfa52fe4ac2b19a1c68e898f6712e88af
0x4d522bcddbd74a1b3428e14a9f5f0b360d42f4755312c7fc24d49bf216ebfa74
0x5931c97d624445c1c085dedf4b7e46c0130b7ab2871aacc97e5436a78a0d30b7

Functions
Getter at block 21285706
LIQUIDATION_MARGIN(view returns (uint256)
1100000000000000000
MAG(view returns (uint256)
1000000000000000000
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
YEAR(view returns (uint256)
31536000
borrowInterestPercentScaled(view returns (uint256)
100
delay(view returns (uint256)
0
liquidationBonus(view returns (uint256)
90000000000000000
owner(view returns (address)
0x4387040b86bad26908b02c44e8428b2ddab4455d
positionNonce(view returns (uint256)
79
staking(view returns (address)
0x8dc85b6056b40c950e6119899cac90be9eeb4da7
unimex_factory(view returns (address)
0xc80b0efb594df8be90a643c7f7a462541cd7f6ee
uniswap_factory(view returns (address)
0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
uniswap_router(view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
Read-only
balanceOf(addressview returns (uint256)
calculateBorrowInterest(bytes32 positionIdview returns (uint256)
canLiquidate(bytes32 positionIdview returns (bool)
escrow(addressview returns (uint256)
positionInfo(bytes32view returns (bytes32 idaddress tokenaddress owneruint256 oweduint256 inputuint256 commitmentuint256 leverageuint256 startTimestampbool isClosedbool isShortuint256 borrowInterest)
State-modifying
closePosition(bytes32 positionIduint256 slippage
deposit(uint256 _amount
liquidatePosition(bytes32 positionIduint256 slippage
openLongPosition(address tokenuint256 amountuint256 leverageuint256 slippage
openShortPosition(address tokenuint256 amountuint256 leverageuint256 slippage
renounceOwnership(
setBorrowPercent(uint256 _newPercentScaled
setDelay(uint256 _delay
setLiquidationBonus(uint256 _liquidationBonus
setStaking(address _staking
transferOwnership(address newOwner
withdraw(uint256 _amount
Events
OnClosePosition(address indexed senderbytes32 positionIdbool isShortaddress indexed token
OnOpenPosition(address indexed senderbytes32 positionIdbool isShortaddress indexed token
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address _stakingaddress _factoryaddress _wethaddress _uniswap_factoryaddress _uniswap_router
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.