diff --git a/contracts/Migrations.sol b/contracts/Migrations.sol index 319b77b..bf44803 100644 --- a/contracts/Migrations.sol +++ b/contracts/Migrations.sol @@ -1,30 +1,29 @@ pragma solidity 0.4.24; - /* solium-disable mixedcase */ contract Migrations { - address public owner; - uint public last_completed_migration; + address public owner; + uint public last_completed_migration; - modifier restricted() { - if (msg.sender == owner) - _; - } + modifier restricted() { + if (msg.sender == owner) + _; + } - constructor() - public - { - owner = msg.sender; - } + constructor() + public + { + owner = msg.sender; + } - function setCompleted(uint completed) public restricted { - last_completed_migration = completed; - } + function setCompleted(uint completed) public restricted { + last_completed_migration = completed; + } - function upgrade(address _newAddress) public restricted { - Migrations upgraded = Migrations(_newAddress); - upgraded.setCompleted(last_completed_migration); - } + function upgrade(address _newAddress) public restricted { + Migrations upgraded = Migrations(_newAddress); + upgraded.setCompleted(last_completed_migration); + } } -/* solium-enable mixedcase */ +/* solium-enable mixedcase */ \ No newline at end of file diff --git a/contracts/MoatAddress.sol b/contracts/MoatAddress.sol index 9d0fe6a..b3b4d00 100644 --- a/contracts/MoatAddress.sol +++ b/contracts/MoatAddress.sol @@ -1,4 +1,4 @@ -// Implement the proper governance mechanism to update the addresses +// Implement the proper governance mechanism to update the admin address like admin have rights to upgrade anything but not just "admin". Governance will be used to set admin address. pragma solidity ^0.4.24; diff --git a/contracts/MoatAsset.sol b/contracts/MoatAsset.sol index f374bb2..818f368 100644 --- a/contracts/MoatAsset.sol +++ b/contracts/MoatAsset.sol @@ -74,6 +74,7 @@ contract MoatAsset is AllowedResolver { } // received ether directly from protocols like Kyber Network + // emit an event atleast function () public payable {} function Deposit() public payable {