Skip to content

Commit

Permalink
bonding: Move constructor to after modifiers
Browse files Browse the repository at this point in the history
Just for consistency with other contracts.
Some docs as a bonus
  • Loading branch information
victorges committed Aug 17, 2023
1 parent 292f954 commit 9dbb0ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contracts/bonding/BondingVotes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ contract BondingVotes is ManagerProxyTarget, IBondingVotes {
using Arrays for uint256[];
using SortedArrays for uint256[];

constructor(address _controller) Manager(_controller) {}

struct BondingCheckpoint {
/**
* @dev The amount of bonded tokens to another delegate as of the lastClaimRound.
Expand Down Expand Up @@ -91,6 +89,12 @@ contract BondingVotes is ManagerProxyTarget, IBondingVotes {
_;
}

/**
* @notice BondingVotes constructor. Only invokes constructor of base Manager contract with provided Controller address
* @param _controller Address of Controller that this contract will be registered with
*/
constructor(address _controller) Manager(_controller) {}

// IVotes interface implementation.
// These should not access any storage directly but proxy to the bonding state functions.

Expand Down

0 comments on commit 9dbb0ae

Please sign in to comment.