UniMexMargin

Verified contract

Active on Ethereum with 779 txns
Deployed by via 0x1c2577b5 at 11681733
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $36,240.38
 (#16)
ERC-1555
--
0x2b9c422a2a25e55879301fba12dc246b69ef78a2b38e21801d94ccb748a26b3c
0xe44ed1a4a2dca6fb6eacf1f1e2e42e056fcfb5522fe646c758fbf6e333cf1864
0x0221b7f7b526f485b194339131374017fe02c21bf9c711b3963526b66370f11a
0x4288b0f99f32a22e691a2012a350351de2c7b75b2919385001d4ba69b407bc98
0x4548f08b7b494f30bd6ce95df3ca19c01103baa8485a44239d4a127d37c891bd
0x5f023081061cb7c2a7cd7dcc1d56033a235cb22ad3229c507c246f47126cf28e
0xf7373edc22342041ec41ec9963e358b9077b1705b8af1808f0d13fc7d6b33519
0xe13d996c2e3c002f92b84776a16db6053bc86ebe3e8107bdb242fdb4f861382e
0x27915cb1724ddb945f68d46b3b09c34ba17819f7094afbf4c3c8b5286b11dec3
0x2d5c3abdb569f456bbe7f8d6f7f42044e007f5562c8d472d53d1a191b30d27d9

Functions
Getter at block 21328898
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
LIQUIDATION_MARGIN(view returns (uint256)
1100000000000000000
LIQUIDATOR_ROLE(view returns (bytes32)
0x5e17fc5225d4a099df75359ce1f405503ca79498a8dc46a7d583235a0ee45c16
MAG(view returns (uint256)
1000000000000000000
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
YEAR(view returns (uint256)
31536000
borrowInterestPercentScaled(view returns (uint256)
100
liquidationBonus(view returns (uint256)
150000000000000000
owner(view returns (address)
0x4387040b86bad26908b02c44e8428b2ddab4455d
paused(view returns (bool)
false
positionNonce(view returns (uint256)
194
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)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
positionInfo(bytes32view returns (bytes32 idaddress tokenaddress owneruint256 oweduint256 inputuint256 commitmentuint256 leverageuint256 startTimestampbool isShortuint256 borrowInterest)
State-modifying
addCommitmentToPosition(bytes32 positionIduint256 amount
closePosition(bytes32 positionIduint256 minimalSwapAmount
deposit(uint256 _amount
grantRole(bytes32 roleaddress account
liquidatePosition(bytes32 positionIduint256 minimalSwapAmount
openLongPosition(address tokenuint256 amountuint256 scaledLeverageuint256 minimalSwapAmount
openShortPosition(address tokenuint256 amountuint256 scaledLeverageuint256 minimalSwapAmount
pause(
renounceOwnership(
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setBorrowPercent(uint256 _newPercentScaled
setLiquidationBonus(uint256 _liquidationBonus
setStaking(address _staking
transferOwnership(address newOwner
unpause(
withdraw(uint256 _amount
Events
OnAddCommitment(bytes32 indexed positionIduint256 amount
OnClosePosition(bytes32 indexed positionIdaddress tokenaddress indexed owneruint256 oweduint256 inputuint256 commitmentuint256 leverageuint256 startTimestampbool isShortuint256 borrowInterestuint256 liquidationBonusuint256 scaledCloseRate
OnOpenPosition(address indexed senderbytes32 positionIdbool isShortaddress indexed token
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
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.