NativeAnchor.sol¶
Description¶
A concrete instance of a mixer which deals with the native currency of the chain.
Constructor¶
Details
Signature
constructor(IVerifier _verifier, IHasher _hasher, uint256 _denomination, uint256 _merkleTreeHeight) Anchor(_verifier, _hasher, _denomination, _merkleTreeHeight) {}
Internal Functions¶
_processWithdraw¶
Details
Signature
_processWithdraw(address _recipient, address _relayer, uint256 _fee, uint256 _refund) internal override
Requires
- require(msg.value == 0)
- require(_refund == 0)
- require(..., "payment to _recipient did not go through")
- require(..., "payment to _relayer did not go through")
_processDeposit¶
Details
Signature
_processDeposit() internal override
Requires
- require(msg.value == denomination)