File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import { IPot } from '../interfaces/IPot.sol';
10
10
*/
11
11
abstract contract DSROracleForwarderBase {
12
12
13
+ event LastSeenPotDataUpdated (IDSROracle.PotData potData );
14
+
13
15
IPot public immutable pot;
14
16
address public immutable l2Oracle;
15
17
@@ -27,6 +29,7 @@ abstract contract DSROracleForwarderBase {
27
29
rho: uint40 (pot.rho ())
28
30
});
29
31
_lastSeenPotData = potData;
32
+ emit LastSeenPotDataUpdated (potData);
30
33
return abi.encodeCall (
31
34
IDSRAuthOracle.setPotData,
32
35
(potData)
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ interface IPotDripLike {
20
20
21
21
abstract contract DSROracleXChainIntegrationBaseTest is Test {
22
22
23
+ event LastSeenPotDataUpdated (IDSROracle.PotData potData );
24
+
23
25
using DomainHelpers for * ;
24
26
25
27
uint256 constant CURR_DSR = 1.000000001547125957863212448e27 ;
@@ -81,6 +83,12 @@ abstract contract DSROracleXChainIntegrationBaseTest is Test {
81
83
assertEq (forwarder.getLastSeenChi (), 0 );
82
84
assertEq (forwarder.getLastSeenRho (), 0 );
83
85
86
+ vm.expectEmit (address (forwarder));
87
+ emit LastSeenPotDataUpdated (IDSROracle.PotData ({
88
+ dsr: uint96 (CURR_DSR),
89
+ chi: uint120 (CURR_CHI),
90
+ rho: uint40 (CURR_RHO)
91
+ }));
84
92
doRefresh ();
85
93
86
94
data = forwarder.getLastSeenPotData ();
You can’t perform that action at this time.
0 commit comments