ETH Price: $2,611.08 (+1.62%)

Transaction Decoder

Block:
22298207 at Apr-18-2025 08:15:23 PM +UTC
Transaction Fee:
0.00000796011407425 ETH $0.02
Gas Used:
21,775 Gas / 0.36556207 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x30424d50...3bA3475c2
0.007794722675734229 Eth
Nonce: 216
0.007786762561659979 Eth
Nonce: 217
0.00000796011407425
(beaverbuild)
6.537648791315647198 Eth6.537648793493147198 Eth0.0000000021775

Execution Trace

AnchoredViewRelay.a9059cbb( )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "../IOracleRelay.sol";
/// @title implementation of compounds' AnchoredView
/// @notice using a main relay and an anchor relay, the AnchoredView
/// ensures that the main relay's price is within some amount of the anchor relay price
/// if not, the call reverts, effectively disabling the oracle & any actions which require it
contract AnchoredViewRelay is IOracleRelay {
address public _anchorAddress;
IOracleRelay public _anchorRelay;
address public _mainAddress;
IOracleRelay public _mainRelay;
uint256 public _widthNumerator;
uint256 public _widthDenominator;
/// @notice all values set at construction time
/// @param anchor_address address of OracleRelay to use as anchor
/// @param main_address address of OracleRelay to use as main
/// @param widthNumerator numerator of the allowable deviation width
/// @param widthDenominator denominator of the allowable deviation width
constructor(
address anchor_address,
address main_address,
uint256 widthNumerator,
uint256 widthDenominator
) {
_anchorAddress = anchor_address;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX