Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Removed frivolous imports to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
hysz committed Sep 5, 2019
1 parent 7e5e224 commit b5be162
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 44 deletions.
2 changes: 0 additions & 2 deletions contracts/staking/contracts/src/fees/MixinExchangeFees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ import "./MixinExchangeManager.sol";
/// monopolize a single pool that they all delegate to.
contract MixinExchangeFees is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage,
MixinZrxVault,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import "../immutable/MixinStorage.sol";
contract MixinExchangeManager is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage
{
Expand Down
5 changes: 0 additions & 5 deletions contracts/staking/contracts/src/stake/MixinStake.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ import "./MixinStakeStorage.sol";
/// @dev This mixin contains logic for managing ZRX tokens and Stake.
contract MixinStake is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage,
MixinZrxVault,
MixinScheduler,
MixinStakingPoolRewardVault,
MixinStakeStorage,
MixinStakeBalances,
MixinStakingPoolRewards
{
Expand Down
2 changes: 0 additions & 2 deletions contracts/staking/contracts/src/stake/MixinStakeBalances.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import "./MixinStakeStorage.sol";
/// **** Read MixinStake before continuing ****
contract MixinStakeBalances is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage,
MixinZrxVault,
Expand Down
3 changes: 0 additions & 3 deletions contracts/staking/contracts/src/stake/MixinStakeStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ import "./MixinZrxVault.sol";
/// @dev This mixin contains logic for managing stake storage.
contract MixinStakeStorage is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage,
MixinZrxVault,
MixinScheduler
{

Expand Down
2 changes: 0 additions & 2 deletions contracts/staking/contracts/src/stake/MixinZrxVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import "../immutable/MixinStorage.sol";
/// @dev This mixin contains logic for managing and interfacing with the Zrx Vault.
/// (see vaults/ZrxVault.sol).
contract MixinZrxVault is
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import "../immutable/MixinStorage.sol";
/// (see vaults/EthVault.sol).
contract MixinEthVault is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,8 @@ import "./MixinStakingPoolRewards.sol";
/// 3. Leverage the staking power of others by convincing them to delegate to your pool.
contract MixinStakingPool is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage,
MixinZrxVault,
MixinScheduler,
MixinStakingPoolRewardVault,
MixinStakeStorage,
MixinStakeBalances,
MixinStakingPoolRewards
{
using LibSafeMath for uint256;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ import "../libs/LibStakingRichErrors.sol";
/// from within this contract.
contract MixinStakingPoolRewardVault is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ import "./MixinStakingPoolRewardVault.sol";

contract MixinStakingPoolRewards is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage,
MixinZrxVault,
MixinScheduler,
MixinStakingPoolRewardVault,
MixinStakeStorage,
MixinStakeBalances
{

Expand Down
2 changes: 0 additions & 2 deletions contracts/staking/contracts/src/sys/MixinScheduler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import "../interfaces/IStakingEvents.sol";
/// and consistent scheduling metric than time. TimeLocks, for example, are measured in epochs.
contract MixinScheduler is
IStakingEvents,
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage
{
Expand Down
2 changes: 0 additions & 2 deletions contracts/staking/contracts/src/vaults/EthVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ import "./MixinVaultCore.sol";

/// @dev This vault manages ETH.
contract EthVault is
Authorizable,
IEthVault,
IVaultCore,
MixinVaultCore
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ import "../immutable/MixinConstants.sol";
/// When in Catastrophic Failure Mode, the Staking contract can still
/// perform withdrawals on behalf of its users.
contract StakingPoolRewardVault is
Authorizable,
IStakingPoolRewardVault,
IVaultCore,
MixinDeploymentConstants,
MixinConstants,
MixinVaultCore
{
Expand Down
4 changes: 1 addition & 3 deletions contracts/staking/contracts/src/vaults/ZrxVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import "./MixinVaultCore.sol";
/// failure mode, it cannot be returned to normal mode; this prevents
/// corruption of related state in the staking contract.
contract ZrxVault is
Authorizable,
IVaultCore,
IZrxVault,
MixinVaultCore
{
Expand Down Expand Up @@ -160,7 +158,7 @@ contract ZrxVault is

// notify
emit ZrxWithdrawnFromVault(msg.sender, owner, amount);

// withdraw ZRX to owner
zrxToken.transfer(
owner,
Expand Down
3 changes: 0 additions & 3 deletions contracts/staking/contracts/test/TestStorageLayout.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ import "../src/interfaces/IStructs.sol";


contract TestStorageLayout is
MixinDeploymentConstants,
Ownable,
MixinConstants,
MixinStorage
{
function assertExpectedStorageLayout()
Expand Down

0 comments on commit b5be162

Please sign in to comment.