This contract is being backfilled. You may encounter incomplete storage history.

AMMRouterV1

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x3f7d8ad8 at 14175039
Slot
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

No balances found for "AMMRouterV1"

No transactions found for "AMMRouterV1"


Functions
Getter at block 20797826
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
GOVERNANCE_FEE(view returns (uint256)
0
registry(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
REFERRAL_FEE(addressview returns (uint256)
getAmountIn(address _ammuint256[] _pairPathuint256[] _tokenPathuint256 _tokenAmountOutview returns (uint256 tokenAmountIn)
getAmountOut(address _ammuint256[] _pairPathuint256[] _tokenPathuint256 _tokenAmountInview returns (uint256 tokenAmountOut)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
getSpotPrice(address _ammuint256[] _pairPathuint256[] _tokenPathview returns (uint256 spotPrice)
hasRole(bytes32 roleaddress accountview returns (bool)
State-modifying
collectGovernanceFee(address _tokenaddress _recipient
grantRole(bytes32 roleaddress account
initialize(address _registryaddress _admin
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setGovernanceFee(uint256 _fee
setReferral(address _recipientuint256 _fee
setRegistry(address _registry
swapExactAmountIn(address _ammuint256[] _pairPathuint256[] _tokenPathuint256 _tokenAmountInuint256 _minAmountOutaddress _touint256 _deadlineaddress _referralRecipientreturns (uint256 tokenAmountOut)
swapExactAmountOut(address _ammuint256[] _pairPathuint256[] _tokenPathuint256 _maxAmountInuint256 _tokenAmountOutaddress _touint256 _deadlineaddress _referralRecipientreturns (uint256 tokenAmountIn)
updateAllTokenApprovalOf(address _amm
updateFYTApprovalOf(address _amm
Events
GovernanceFeeCollected(address _tokenuint256 _amountaddress _recipient
GovernanceFeeUpdated(uint256 _fee
ReferralFeePaid(address _recipientuint256 _feeAmount
ReferralRecipientAdded(address _recipient
ReferralRecipientRemoved(address _recipient
ReferralSet(address _recipientuint256 _fee
RegistrySet(address _registry
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokenApproved(address _tokenaddress _amm
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.