UniMexMargin
Verified contract
Active on
Ethereum with 189 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 ($2,510.81)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0.757641 | $3,313.98 |
$2,510.81 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 13572226 | 3 years ago | | | 0 | 0.010247116 | |
| 13087893 | 3 years ago | | | 0 | 0.0035943378 | |
| 13032287 | 3 years ago | | | 0 | 0.0023896493 | |
| 12806732 | 3 years ago | | | 0 | 0.00057705600 | |
| 12796929 | 3 years ago | | | 0 | 0.00024349000 | |
| 12791791 | 3 years ago | | | 0 | 0.00080124800 | |
| 12788653 | 3 years ago | | | 0 | 0.0022607000 | |
| 12788614 | 3 years ago | | | 0 | 0.0021538700 | |
| 12761411 | 3 years ago | | | 0 | 0.00029218800 | |
| 12761411 | 3 years ago | | | 0 | 0.00024349000 |
ABI
ABI objects
Getter at block 21272345
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
amountThresholds() view returns (uint256)
275
borrowInterestPercentScaled() view returns (uint32)
100
calculateAutoCloseBonus() view returns (uint256)
135000000000000000
calculateAutoOpenBonus() view returns (uint256)
255000000000000000
owner() view returns (address)
0x4387040b86bad26908b02c44e8428b2ddab4455d
paused() view returns (bool)
false
positionNonce() view returns (uint256)
17
staking() view returns (address)
0x8dc85b6056b40c950e6119899cac90be9eeb4da7
thresholdGasPrice() view returns (uint256)
500000000000
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)
checkPositionAmount(address token, uint256 amount, uint256 leverageScaled) 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)
limitOrders(bytes32) view returns (uint256 amount, uint256 minimalSwapAmount, address token, bool isShort, uint32 validBefore, uint32 leverageScaled, address owner, uint32 takeProfitPercent, uint32 stopLossPercent, uint256 escrowAmount)
positionInfo(bytes32) view returns (uint256 owed, uint256 input, uint256 commitment, address token, bool isShort, uint32 startTimestamp, uint32 borrowInterest, address owner, uint32 stopLossPercent, uint32 takeProfitPercent)
State-modifying
Events addCommitmentToPosition(bytes32 positionId, uint256 amount)
autoClose(bytes32 positionId)
autoOpen(bytes32 limitOrderId)
cancelLimitOrder(bytes32 limitOrderId)
closePosition(bytes32 positionId, uint256 minimalSwapAmount)
deposit(uint256 _amount)
grantRole(bytes32 role, address account)
liquidatePosition(bytes32 positionId, uint256 minimalSwapAmount)
openLimitOrder(address token, bool isShort, uint256 amount, uint256 minimalSwapAmount, uint256 leverageScaled, uint32 validBefore, uint32 takeProfitPercent, uint32 stopLossPercent)
openLongPosition(address token, uint256 amount, uint256 scaledLeverage, uint256 minimalSwapAmount)
openLongPositionWithSlTp(address token, uint256 amount, uint256 scaledLeverage, uint256 minimalSwapAmount, uint256 takeProfitPercent, uint256 stopLossPercent)
openShortPosition(address token, uint256 amount, uint256 scaledLeverage, uint256 minimalSwapAmount)
openShortPositionWithSlTp(address token, uint256 amount, uint256 scaledLeverage, uint256 minimalSwapAmount, uint256 takeProfitPercent, uint256 stopLossPercent)
pause()
renounceOwnership()
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setAmountThresholds(uint32 leverage5)
setBorrowPercent(uint32 _newPercentScaled)
setStaking(address _staking)
setStopLoss(bytes32 positionId, uint32 percentAmount)
setTakeProfit(bytes32 positionId, uint32 percentAmount)
setThresholdGasPrice(uint256 gasPrice)
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, uint32 startTimestamp, bool isShort, uint256 borrowInterest, uint256 liquidationBonus, uint256 scaledCloseRate)
OnLimitOrder(bytes32 indexed limitOrderId, address indexed owner, address token, uint256 amount, uint256 minimalSwapAmount, uint256 leverageScaled, uint256 validBefore, uint256 escrowAmount, uint32 takeProfitPercent, uint32 stopLossPercent, bool isShort)
OnLimitOrderCancelled(bytes32 indexed limitOrderId)
OnLimitOrderCompleted(bytes32 indexed limitOrderId, bytes32 positionId)
OnOpenPosition(address indexed sender, bytes32 positionId, bool isShort, address indexed token, uint256 scaledLeverage)
OnStopLoss(bytes32 indexed positionId, uint256 positionInput, uint256 swapAmount, address token, bool isShort)
OnTakeProfit(bytes32 indexed positionId, uint256 positionInput, uint256 swapAmount, address token, bool isShort)
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.