TempleFraxAMMRouter

Verified contract

Active on Ethereum with 11,203 txns
Deployed by via 0x943d23be at 13836924
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 1 additional slot
-
variable spans 1 additional slot
ERC-20
Value $0
0xa364b8e6862acd442d8b066b0938ae78077c2023b330caaae3af75c327b86444
0x603e4108640f70baac537553313b17c645d0e77bb64644a17fdd16b1c250f6cc
0xf3b337857520e66f14d48935d79ca4224339a5f0e31516f0165f18aa01ffb7a3
0x0c22384bfdbe745e7c4e8eb75336b472ed4898f2e3862082980dbaea1c19c05e
0x1e7668b82b2337d866d8d1e9e87301054dbe816f01352881ebb639e853bd1247
0x021d3c1bfb3aa3b740d25b5260d5fec3bce0bc39246f2ae8835b0d3beec51123
0x46d52b25cadaeed0d6a2c06e0fe7080a26a0f9a0ffb327923d1daf14051be06c
0x726abe8ff13d3b11cc6bcf8f33ce07fbfcc5df5c1bb9c61ce9914a6920c301cc
0x1ed3c29fc4c4d2c9870665f7374a69c2777f544b8a1ffbfd187f0287d7db3331
0x8e1b4a68f2f5f55ce48602c07c1e72c8be0d198914ca4045be1fa359af06b8b5

Functions
Getter at block 21248758
CAN_ADD_ALLOWED_USER(view returns (bytes32)
0xf96bae682d44fa45ba8545a070ebfbdee09d52913460f4e517411bd1c3563645
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DYNAMIC_THRESHOLD_INCREASE_DENOMINATOR(view returns (uint256)
10000
dynamicThresholdDecayPerBlock(view returns (uint256)
200
dynamicThresholdIncreasePct(view returns (uint256)
9800
dynamicThresholdPrice(view returns (uint256 fraxuint256 temple)
(frax=1000000, temple=945303)
dynamicThresholdPriceWithDecay(view returns (uint256 fraxuint256 temple)
(frax=1000000, temple=1468719303)
fraxToken(view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
interpolateFromPrice(view returns (uint256 fraxuint256 temple)
(frax=100000, temple=50000)
interpolateToPrice(view returns (uint256 fraxuint256 temple)
(frax=100000, temple=10000)
openAccessEnabled(view returns (bool)
true
owner(view returns (address)
0x4d6175d58c5aceef30f546c0d5a557effa53a950
pair(view returns (address)
0x6021444f1706f15465bee85463bcc7d7cc17fc03
priceCrossedBelowDynamicThresholdBlock(view returns (uint256)
13909888
templeToken(view returns (address)
0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7
templeTreasury(view returns (address)
0x22c2fe05f55f81bf32310acd9a7c51c4d7b4e443
Read-only
allowed(addressview returns (bool)
getAmountOut(uint256 amountInuint256 reserveInuint256 reserveOutpure returns (uint256 amountOut)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
mintRatioAt(uint256 templeuint256 fraxview returns (uint256 numeratoruint256 denominator)
quote(uint256 amountAuint256 reserveAuint256 reserveBpure returns (uint256 amountB)
supportsInterface(bytes4 interfaceIdview returns (bool)
swapExactFraxForTempleQuote(uint256 amountInview returns (uint256 amountInAMMuint256 amountInProtocoluint256 amountOutAMMuint256 amountOutProtocol)
swapExactTempleForFraxQuote(uint256 amountInview returns (bool priceBelowIVbool willCrossDynamicThresholduint256 amountOut)
State-modifying
addAllowedUser(address userAddress
addLiquidity(uint256 amountADesireduint256 amountBDesireduint256 amountAMinuint256 amountBMinaddress touint256 deadlinereturns (uint256 amountAuint256 amountBuint256 liquidity)
grantRole(bytes32 roleaddress account
removeAllowedUser(address userAddress
removeLiquidity(uint256 liquidityuint256 amountAMinuint256 amountBMinaddress touint256 deadlinereturns (uint256 amountAuint256 amountB)
renounceOwnership(
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setDynamicThresholdDecayPerBlock(uint256 _dynamicThresholdDecayPerBlock
setDynamicThresholdIncreasePct(uint256 _dynamicThresholdIncreasePct
setInterpolateFromPrice(uint256 fraxuint256 temple
setInterpolateToPrice(uint256 fraxuint256 temple
setProtocolMintEarningsAccount(address _protocolMintEarningsAccount
swapExactFraxForTemple(uint256 amountInuint256 amountOutMinaddress touint256 deadlinereturns (uint256 amountOut)
swapExactTempleForFrax(uint256 amountInuint256 amountOutMinaddress touint256 deadlinereturns (uint256)
toggleOpenAccess(
transferOwnership(address newOwner
withdraw(address tokenaddress touint256 amount
Events
DynamicThresholdChange(uint256 currDynamicThresholdTemple
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PriceCrossedBelowDynamicThreshold(uint256 blockNumber
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Constructor
constructor(address _pairaddress _templeTokenaddress _fraxTokenaddress _templeTreasuryaddress _protocolMintEarningsAccountstruct TempleFraxAMMRouterPrice _dynamicThresholdPriceuint256 _dynamicThresholdDecayPerBlockstruct TempleFraxAMMRouterPrice _interpolateFromPricestruct TempleFraxAMMRouterPrice _interpolateToPrice
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.