UniMexMargin
Verified contract
Active on
Ethereum with 779 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x8dc8…4da7
0xc80b…f6ee
0x5c69…aa6f
Balances ($36,240.38)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 9.699199 | $3,736.43 |
$36,240.38 | |
0xb4f4…191f | ERC-1555 | 1 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 14397075 | 3 years ago | | | 0 | 0.010846248 | |
| 14397066 | 3 years ago | | | 0 | 0.011571781 | |
| 14397058 | 3 years ago | | | 0 | 0.013711052 | |
| 13314299 | 3 years ago | | | 0 | 0.0020980305 | |
| 12515581 | 4 years ago | | | 0 | 0.0045386880 | |
| 12378874 | 4 years ago | | | 0 | 0.0019250000 | |
| 12376495 | 4 years ago | | | 0 | 0.021344082 | |
| 12291254 | 4 years ago | | | 0 | 0.0074593750 | |
| 12290595 | 4 years ago | | | 0 | 0.031816164 | |
| 12084499 | 4 years ago | | | 0 | 0.0096339000 |
ABI
ABI objects
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(address) view returns (uint256)
calculateBorrowInterest(bytes32 positionId) view returns (uint256)
canLiquidate(bytes32 positionId) view returns (bool)
escrow(address) view returns (uint256)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
positionInfo(bytes32) view returns (bytes32 id, address token, address owner, uint256 owed, uint256 input, uint256 commitment, uint256 leverage, uint256 startTimestamp, bool isShort, uint256 borrowInterest)
State-modifying
Events addCommitmentToPosition(bytes32 positionId, uint256 amount)
closePosition(bytes32 positionId, uint256 minimalSwapAmount)
deposit(uint256 _amount)
grantRole(bytes32 role, address account)
liquidatePosition(bytes32 positionId, uint256 minimalSwapAmount)
openLongPosition(address token, uint256 amount, uint256 scaledLeverage, uint256 minimalSwapAmount)
openShortPosition(address token, uint256 amount, uint256 scaledLeverage, uint256 minimalSwapAmount)
pause()
renounceOwnership()
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setBorrowPercent(uint256 _newPercentScaled)
setLiquidationBonus(uint256 _liquidationBonus)
setStaking(address _staking)
transferOwnership(address newOwner)
unpause()
withdraw(uint256 _amount)
OnAddCommitment(bytes32 indexed positionId, uint256 amount)
OnClosePosition(bytes32 indexed positionId, address token, address indexed owner, uint256 owed, uint256 input, uint256 commitment, uint256 leverage, uint256 startTimestamp, bool isShort, uint256 borrowInterest, uint256 liquidationBonus, uint256 scaledCloseRate)
OnOpenPosition(address indexed sender, bytes32 positionId, bool isShort, address indexed token)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
constructor(address _staking, address _factory, address _weth, address _uniswap_factory, address _uniswap_router)
This contract contains no fallback and receive objects.
This contract contains no error objects.