TempleFraxAMMRouter
Verified contract
Active on
Ethereum with 11,203 txns
Slot
XX
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
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
FRAX | ERC-20 | 0 | $0.997782 |
$0 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21147389 | 14 days ago | | | 0 | 0.0013500302 | |
| 19647641 | 7 months ago | | | 0 | 0.0017340167 | |
| 19180480 | 9 months ago | | | 0 | 0.0038365009 | |
| 18550753 | a year ago | | | 0 | 0.0051450812 | |
| 18536707 | a year ago | | | 0 | 0.0056091805 | |
| 18507310 | a year ago | | | 0 | 0.0025843311 | |
| 18487596 | a year ago | | | 0 | 0.0027498216 | |
| 18480185 | a year ago | | | 0 | 0.0038444912 | |
| 18480115 | a year ago | | | 0 | 0.0052770724 | |
| 16290988 | 2 years ago | | | 0 | 0.0014332370 |
ABI
ABI objects
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 frax, uint256 temple)
(frax=1000000, temple=945303)
dynamicThresholdPriceWithDecay() view returns (uint256 frax, uint256 temple)
(frax=1000000, temple=1468719303)
fraxToken() view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
interpolateFromPrice() view returns (uint256 frax, uint256 temple)
(frax=100000, temple=50000)
interpolateToPrice() view returns (uint256 frax, uint256 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(address) view returns (bool)
getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns (uint256 amountOut)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
mintRatioAt(uint256 temple, uint256 frax) view returns (uint256 numerator, uint256 denominator)
quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns (uint256 amountB)
supportsInterface(bytes4 interfaceId) view returns (bool)
swapExactFraxForTempleQuote(uint256 amountIn) view returns (uint256 amountInAMM, uint256 amountInProtocol, uint256 amountOutAMM, uint256 amountOutProtocol)
swapExactTempleForFraxQuote(uint256 amountIn) view returns (bool priceBelowIV, bool willCrossDynamicThreshold, uint256 amountOut)
State-modifying
Events addAllowedUser(address userAddress)
addLiquidity(uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns (uint256 amountA, uint256 amountB, uint256 liquidity)
grantRole(bytes32 role, address account)
removeAllowedUser(address userAddress)
removeLiquidity(uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns (uint256 amountA, uint256 amountB)
renounceOwnership()
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setDynamicThresholdDecayPerBlock(uint256 _dynamicThresholdDecayPerBlock)
setDynamicThresholdIncreasePct(uint256 _dynamicThresholdIncreasePct)
setInterpolateFromPrice(uint256 frax, uint256 temple)
setInterpolateToPrice(uint256 frax, uint256 temple)
setProtocolMintEarningsAccount(address _protocolMintEarningsAccount)
swapExactFraxForTemple(uint256 amountIn, uint256 amountOutMin, address to, uint256 deadline) returns (uint256 amountOut)
swapExactTempleForFrax(uint256 amountIn, uint256 amountOutMin, address to, uint256 deadline) returns (uint256)
toggleOpenAccess()
transferOwnership(address newOwner)
withdraw(address token, address to, uint256 amount)
DynamicThresholdChange(uint256 currDynamicThresholdTemple)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PriceCrossedBelowDynamicThreshold(uint256 blockNumber)
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 _pair, address _templeToken, address _fraxToken, address _templeTreasury, address _protocolMintEarningsAccount, struct TempleFraxAMMRouterPrice _dynamicThresholdPrice, uint256 _dynamicThresholdDecayPerBlock, struct TempleFraxAMMRouterPrice _interpolateFromPrice, struct TempleFraxAMMRouterPrice _interpolateToPrice)
This contract contains no fallback and receive objects.
This contract contains no error objects.