AMMRouterV1
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
5
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 1 additional slot
Balances ($0.00)
No balances found for "AMMRouterV1"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "AMMRouterV1"
ABI
ABI objects
Getter at block 21160471
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
GOVERNANCE_FEE() view returns (uint256)
0
registry() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
REFERRAL_FEE(address) view returns (uint256)
getAmountIn(address _amm, uint256[] _pairPath, uint256[] _tokenPath, uint256 _tokenAmountOut) view returns (uint256 tokenAmountIn)
getAmountOut(address _amm, uint256[] _pairPath, uint256[] _tokenPath, uint256 _tokenAmountIn) view returns (uint256 tokenAmountOut)
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount(bytes32 role) view returns (uint256)
getSpotPrice(address _amm, uint256[] _pairPath, uint256[] _tokenPath) view returns (uint256 spotPrice)
hasRole(bytes32 role, address account) view returns (bool)
State-modifying
Events collectGovernanceFee(address _token, address _recipient)
grantRole(bytes32 role, address account)
initialize(address _registry, address _admin)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setGovernanceFee(uint256 _fee)
setReferral(address _recipient, uint256 _fee)
setRegistry(address _registry)
swapExactAmountIn(address _amm, uint256[] _pairPath, uint256[] _tokenPath, uint256 _tokenAmountIn, uint256 _minAmountOut, address _to, uint256 _deadline, address _referralRecipient) returns (uint256 tokenAmountOut)
swapExactAmountOut(address _amm, uint256[] _pairPath, uint256[] _tokenPath, uint256 _maxAmountIn, uint256 _tokenAmountOut, address _to, uint256 _deadline, address _referralRecipient) returns (uint256 tokenAmountIn)
updateAllTokenApprovalOf(address _amm)
updateFYTApprovalOf(address _amm)
GovernanceFeeCollected(address _token, uint256 _amount, address _recipient)
GovernanceFeeUpdated(uint256 _fee)
ReferralFeePaid(address _recipient, uint256 _feeAmount)
ReferralRecipientAdded(address _recipient)
ReferralRecipientRemoved(address _recipient)
ReferralSet(address _recipient, uint256 _fee)
RegistrySet(address _registry)
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)
TokenApproved(address _token, address _amm)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.