depositAudit()

depositAudit() public payable returns (bool succes)

Description

The function can be called by anyone. This function is used to deposit additional funds to a pending audit.

Require

It is required that the audit is not closed, that the msg.value is more than zero and that the deposit (minus fee) is a multiple of the low risk reward.

#Check require
require(!audits[_contracthash].closed, "deposit audit: audit is closed");
require(msg.value != 0, "request audit: no reward added");
require(amount.mod(minimum) == 0, "deposit audit: msg.value not multiple of minimum reward");

Input

The input is the ID of the audit.

#The input
bytes32 _contracthash

Output

Returns true on successful execution.

#Returns value
returns (bool success)

Last updated

Was this helpful?