Skip to content

Commit 967b63d

Browse files
author
chenf
committed
Remove useless code
1 parent 23daade commit 967b63d

39 files changed

+2
-5131
lines changed

contracts/NestBase.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
pragma solidity ^0.8.6;
44

5-
import "./libs/TransferHelper.sol";
65
import "./interfaces/INestGovernance.sol";
7-
import "./interfaces/INestLedger.sol";
86

97
/// @dev Base contract of nest
108
contract NestBase {

contracts/NestBatchMining.sol

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import "./libs/IERC20.sol";
66
import "./libs/TransferHelper.sol";
77

88
import "./interfaces/INestBatchMining.sol";
9-
import "./interfaces/INestLedger.sol";
109

1110
import "./custom/ChainConfig.sol";
1211
import "./custom/NestFrequentlyUsed.sol";
@@ -751,17 +750,6 @@ contract NestBatchMining is ChainConfig, NestFrequentlyUsed, INestBatchMining {
751750
payable(to).transfer(value);
752751
}
753752

754-
/// @dev Donate to dao
755-
/// @param channelId Target channelId
756-
/// @param value Amount to receive
757-
function donate(uint channelId, uint value) external override {
758-
759-
PriceChannel storage channel = _channels[channelId];
760-
require(channel.opener == msg.sender, "NOM:!opener");
761-
channel.rewards -= _toUInt96(value);
762-
INestLedger(INestMapping(_governance).getNestLedgerAddress()).addETHReward { value: value } (channelId);
763-
}
764-
765753
/// @dev Gets the address corresponding to the given index number
766754
/// @param index The index number of the specified address
767755
/// @return The address corresponding to the given index number

contracts/NestBatchPlatform.sol

Lines changed: 0 additions & 219 deletions
This file was deleted.

contracts/NestLedger.sol

Lines changed: 0 additions & 74 deletions
This file was deleted.

contracts/NestMapping.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
pragma solidity ^0.8.6;
44

5+
import "./interfaces/INestMapping.sol";
56
import "./NestBase.sol";
67

78
/// @dev The contract is for nest builtin contract address mapping

contracts/interfaces/INestBatchMining.sol

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,4 @@ interface INestBatchMining {
246246
/// @param to Address to receive
247247
/// @param value Amount to receive
248248
function pay(uint channelId, address to, uint value) external;
249-
250-
/// @dev Donate to dao
251-
/// @param channelId Target channelId
252-
/// @param value Amount to receive
253-
function donate(uint channelId, uint value) external;
254249
}

0 commit comments

Comments
 (0)