Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contracts/feeAuction/FeeAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ contract FeeAuction is IFeeAuction, UUPSUpgradeable, Access, FeeAuctionStorageUt
balances = new uint256[](assetsLength);
for (uint256 i; i < assetsLength; ++i) {
address asset = _assets[i];
if (asset == address(0)) revert InvalidAsset();
uint256 balance = IERC20(asset).balanceOf(address(this));
balances[i] = balance;
if (balance < _minAmounts[i]) revert InsufficientBalance(asset, balance, _minAmounts[i]);
Expand Down
3 changes: 3 additions & 0 deletions contracts/interfaces/IFeeAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ interface IFeeAuction {
/// @dev Set start price
event SetStartPrice(uint256 startPrice);

/// @dev Asset must be non-zero address
error InvalidAsset();

/// @dev Assets must be non-zero length and have matching lengths
error InvalidAssets();

Expand Down