Function: depositNative(address contributor)
This function emits the Deposit
event and transfers the received native tokens to the bfx
on behalf of the contributor
.
Inputs
contributor
Control: 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
bfx
.Increase the
nextDepositNum
by 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.