@@ -55,14 +55,14 @@ contract ClustersMarketV1 is UUPSUpgradeable, Initializable, Ownable, Reentrancy
55
55
uint88 lastPrice;
56
56
// Price integral last update timestamp.
57
57
uint40 lastUpdated;
58
- // Bid amount .
59
- uint88 bidAmount ;
58
+ // Amount backing the name .
59
+ uint88 backing ;
60
60
// Bid last update timestamp.
61
61
uint40 bidUpdated;
62
62
// Bidder on the name.
63
63
address bidder;
64
- // Amount backing the name .
65
- uint88 backing ;
64
+ // Bid amount .
65
+ uint88 bidAmount ;
66
66
}
67
67
68
68
/// @dev The storage struct for the contract.
@@ -183,9 +183,9 @@ contract ClustersMarketV1 is UUPSUpgradeable, Initializable, Ownable, Reentrancy
183
183
uint256 minAnnualPrice = _minAnnualPrice (contracts);
184
184
if (msg .value < minAnnualPrice) revert Insufficient ();
185
185
Bid storage b = $.bids[clusterName];
186
- b.backing = SafeCastLib.toUint88 (msg .value );
187
186
b.lastUpdated = uint40 (block .timestamp );
188
187
b.lastPrice = SafeCastLib.toUint88 (minAnnualPrice);
188
+ b.backing = SafeCastLib.toUint88 (msg .value );
189
189
address to = MessageHubLib.senderOrSigner ();
190
190
_mintNext (contracts, clusterName, to);
191
191
emit Bought (clusterName, to, msg .value );
@@ -228,11 +228,11 @@ contract ClustersMarketV1 is UUPSUpgradeable, Initializable, Ownable, Reentrancy
228
228
$.protocolAccural = SafeCastLib.toUint88 (F.rawAdd ($.protocolAccural, backing));
229
229
uint88 bidAmount = b.bidAmount;
230
230
address bidder = b.bidder;
231
- b.bidAmount = 0 ;
232
- b.bidder = address (0 );
233
231
b.bidUpdated = 0 ;
234
- b.lastUpdated = uint40 (block .timestamp );
232
+ b.bidder = address (0 );
233
+ b.bidAmount = 0 ;
235
234
b.lastPrice = SafeCastLib.toUint88 (_minAnnualPrice (contracts));
235
+ b.lastUpdated = uint40 (block .timestamp );
236
236
// If there's no bid, reclaim the name.
237
237
if (bidAmount == uint256 (0 )) {
238
238
b.backing = 0 ;
0 commit comments