Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Jul 24, 2018
1 parent 68c738a commit 5365d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/TransmuteDPOS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ contract TransmuteDPOS is TransmuteToken, RoundManager, ProviderPool {
function bond(address _provider, uint _amount) external {
require(_amount > 0);
Provider storage p = providers[_provider];
// A delegator is only allowed to bond to an Unregistered provider if the provider is himself
// otherwise _provider has to be associated with a Registered provider
// A delegator is only allowed to bond to himself (in which case he wants to be a Provider)
// or to a Registered provider
require(_provider == msg.sender || p.status == ProviderStatus.Registered);
// Check if delegator has not already bonded to some address
require(delegators[msg.sender].delegateAddress == address(0));
Expand Down

0 comments on commit 5365d7c

Please sign in to comment.