updateStartBlock()

updateStartBlock() whenNotPaused external returns (bool succes)

Description

The update startblock function can only be called by the tax contract when the system is not paused. This function is used to set the a new block for the calculation of the tax fee and stability reward for this linked asset instance. The tax contract calls this function when updating the fee and reward rates.

require

#The update startblock function can only be called by the tax contract
#with a newBlocknumber greather then the current set startblock.
require(msg.sender == tax);
require(newBlock > startBlock);

input

#The input is the number of the new block for the instance.
uint256 newBlock

output

#Returns true on succesful execution.
returns (bool success)

Last updated

Was this helpful?