aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
322 stars 79 forks source link

feat: pause FT transfers #922

Closed karim-en closed 3 months ago

karim-en commented 3 months ago

Description

Add the possibility of pausing the ft transfers for the internal eth-connector; this is needed to avoid pausing the whole Aurora engine during migration. A new flag, PAUSE_FT, has been added that pauses all the public methods that could change the internal balances of the eth-connector token [ft_transfer, ft_transfer_call, storage_deposit, storage_unregister].

Performance / NEAR gas cost considerations

Testing

Some tests have been added to test the pause and unpause logic.

How should this be reviewed

Additional information