Function: depositNative(address contributor)
This function emits the Deposit event and transfers the received native tokens to the rabbit on behalf of the contributor.
Inputs
contributorControl: Fully controlled by the caller.
Constraints: N/A.
Impact: The contributor of the deposit.
Branches and code coverage
Intended branches
Transfer the received native tokens to the
rabbit.Increase the
nextDepositNumby one when the transfer succeeds.
Negative behavior
Revert when the native token is not supported.
Revert when the amount is smaller than
minDeposits[native].Revert when the transfer fails.