Skip to content

Commit a7a3826

Browse files
author
Aditya Sarawgi
authored
add rebase timestamp to logs (#115)
* add rebase timestamp to logs
1 parent 7921e87 commit a7a3826

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contracts/UFragmentsPolicy.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ contract UFragmentsPolicy is Ownable {
3131
uint256 indexed epoch,
3232
uint256 exchangeRate,
3333
uint256 cpi,
34-
int256 requestedSupplyAdjustment
34+
int256 requestedSupplyAdjustment,
35+
uint256 timestampSec
3536
);
3637

3738
UFragments public uFrags;
@@ -113,7 +114,7 @@ contract UFragmentsPolicy is Ownable {
113114

114115
uint256 supplyAfterRebase = uFrags.rebase(epoch, supplyDelta);
115116
assert(supplyAfterRebase <= MAX_SUPPLY);
116-
emit LogRebase(epoch, exchangeRate, cpi, supplyDelta);
117+
emit LogRebase(epoch, exchangeRate, cpi, supplyDelta, lastRebaseTimestampSec);
117118
}
118119

119120
/**

0 commit comments

Comments
 (0)