Skip to content

Commit

Permalink
Code423n4 #53, Unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Splidge committed Jun 16, 2021
1 parent fde27f2 commit aaa4bbb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contracts/RCOrderbook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ contract RCOrderbook is Ownable, NativeMetaTransaction, IRCOrderbook {
external
override
onlyMarkets
returns (address _newOwner)
{
address _newOwner = address(0);
address _market = msgSender();
// the market is the head of the list, the next bid is therefore the owner
Bid storage _head = user[_market][index[_market][_market][_card]];
Expand Down
3 changes: 0 additions & 3 deletions contracts/RCTreasury.sol
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ contract RCTreasury is Ownable, NativeMetaTransaction, IRCTreasury {
override
balancedBooks
onlyMarkets
returns (bool)
{
require(!globalPause, "Rentals are disabled");
if (marketBalance < _amount) {
Expand All @@ -436,8 +435,6 @@ contract RCTreasury is Ownable, NativeMetaTransaction, IRCTreasury {
marketBalance -= _amount;
marketPot[_market] += _amount;
totalMarketPots += _amount;

return true;
}

/// @notice a payout is equivalent to moving from market pot to user's deposit (the opposite of payRent)
Expand Down
3 changes: 1 addition & 2 deletions contracts/interfaces/IRCOrderbook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ interface IRCOrderbook {
function closeMarket() external;

function findNewOwner(uint256 _token, uint256 _timeOwnershipChanged)
external
returns (address _newOwner);
external;

function getBidValue(address _user, uint256 _token)
external
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IRCTreasury.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface IRCTreasury {

function withdrawDeposit(uint256 _amount, bool _localWithdrawal) external;

function payRent(uint256) external returns (bool);
function payRent(uint256) external;

function payout(address, uint256) external returns (bool);

Expand Down

0 comments on commit aaa4bbb

Please sign in to comment.