Closed lempire123 closed 1 year ago
Related to #607 relayer will not receive fee
at all. And some related logic was also deleted.
@lempire123 pls fix the tests. CI failed.
Related to #607 relayer will not receive
fee
at all. And some related logic was also deleted.@lempire123 pls fix the tests. CI failed.
I guess there's no point in fixing this specific report then, given the auditors weren't aware that the NEP-141 logic would be separated?
It is unnecessary to require relayers to register an EVM address before they can receive fees for deposits.
The function
register_relayer()
allows a user to register an EVM address that receives fees from the bridge. Fees are paid to an EVM address so a relayer must have an associated EVM address to receive funds.However, since
near_account_to_evm_address()
provides a default mapping from a NEARAccountId
to an EVM address it is possible to allow relayers to receive funds without first registering an EVM address.