Remove unnecessary payable keywords
This commit is contained in:
parent
4f6958b7b5
commit
9d9fe882b6
@ -35,7 +35,7 @@ contract ZrxVault is
|
||||
using LibSafeMath for uint256;
|
||||
|
||||
// Address of staking proxy contract
|
||||
address payable public stakingProxyAddress;
|
||||
address public stakingProxyAddress;
|
||||
|
||||
// True iff vault has been set to Catastrophic Failure Mode
|
||||
bool public isInCatastrophicFailure;
|
||||
@ -91,7 +91,7 @@ contract ZrxVault is
|
||||
/// @dev Sets the address of the StakingProxy contract.
|
||||
/// Note that only the contract owner can call this function.
|
||||
/// @param _stakingProxyAddress Address of Staking proxy contract.
|
||||
function setStakingProxy(address payable _stakingProxyAddress)
|
||||
function setStakingProxy(address _stakingProxyAddress)
|
||||
external
|
||||
onlyAuthorized
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ interface IStructs {
|
||||
/// @param operator of the pool.
|
||||
/// @param operatorShare Fraction of the total balance owned by the operator, in ppm.
|
||||
struct Pool {
|
||||
address payable operator;
|
||||
address operator;
|
||||
uint32 operatorShare;
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ interface IZrxVault {
|
||||
/// @dev Sets the address of the StakingProxy contract.
|
||||
/// Note that only the contract staker can call this function.
|
||||
/// @param _stakingProxyAddress Address of Staking proxy contract.
|
||||
function setStakingProxy(address payable _stakingProxyAddress)
|
||||
function setStakingProxy(address _stakingProxyAddress)
|
||||
external;
|
||||
|
||||
/// @dev Vault enters into Catastrophic Failure Mode.
|
||||
|
@ -35,7 +35,7 @@ contract MixinStake is
|
||||
function stake(uint256 amount)
|
||||
external
|
||||
{
|
||||
address payable staker = msg.sender;
|
||||
address staker = msg.sender;
|
||||
|
||||
// deposit equivalent amount of ZRX into vault
|
||||
getZrxVault().depositFrom(staker, amount);
|
||||
@ -109,7 +109,7 @@ contract MixinStake is
|
||||
)
|
||||
external
|
||||
{
|
||||
address payable staker = msg.sender;
|
||||
address staker = msg.sender;
|
||||
|
||||
// handle delegation
|
||||
if (from.status == IStructs.StakeStatus.DELEGATED) {
|
||||
@ -154,7 +154,7 @@ contract MixinStake is
|
||||
/// @param amount Amount of stake to delegate.
|
||||
function _delegateStake(
|
||||
bytes32 poolId,
|
||||
address payable staker,
|
||||
address staker,
|
||||
uint256 amount
|
||||
)
|
||||
private
|
||||
@ -192,7 +192,7 @@ contract MixinStake is
|
||||
/// @param amount Amount of stake to un-delegate.
|
||||
function _undelegateStake(
|
||||
bytes32 poolId,
|
||||
address payable staker,
|
||||
address staker,
|
||||
uint256 amount
|
||||
)
|
||||
private
|
||||
|
@ -51,7 +51,7 @@ contract MixinStakingPool is
|
||||
returns (bytes32 poolId)
|
||||
{
|
||||
// note that an operator must be payable
|
||||
address payable operator = msg.sender;
|
||||
address operator = msg.sender;
|
||||
|
||||
// compute unique id for this pool
|
||||
poolId = lastPoolId = bytes32(uint256(lastPoolId).safeAdd(1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user