UniswapV2PriceProviderMock
Overview
License: MIT
contract UniswapV2PriceProviderMock is PriceProvider, Initializable, AccessControlUpgradeableStructs info
PriceInfo
struct PriceInfo {
uint256 price;
uint8 tokenDecimals;
}UniswapV2Metadata
struct UniswapV2Metadata {
bool isActive;
address pair;
address pairAsset;
uint8 tokenDecimals;
uint8 pairAssetDecimals;
}Events info
GrantModeratorRole
RevokeModeratorRole
SetTokenAndPrice
ChangeActive
SetTokenDecimals
Constants info
MODERATOR_ROLE (0x797669c9)
DESCRIPTION (0xf1ae8856)
State variables info
tokenDecimals (0x3b97e856)
uniswapV2Metadata (0x809205db)
tokenPrice (0x84ba3f69)
Modifiers info
onlyAdmin
onlyModerator
Functions info
initialize (0x8129fc1c)
grantModerator (0x6981c7ae)
revokeModerator (0x36445636)
setTokenDecimals (0xf2cf47be)
Name
Type
Description
setTokenAndPrice (0x179750ec)
changeActive (0x258a4532)
Name
Type
Description
isListed (0xf794062e)
Name
Type
Description
Name
Type
Description
isActive (0x9f8a13d7)
Name
Type
Description
Name
Type
Description
getPrice (0x41976e09)
Name
Type
Description
Name
Type
Description
getReserves (0x32749461)
getPriceDecimals (0x1b30aafc)
Name
Type
Description
Last updated