tokenbridge-contracts icon indicating copy to clipboard operation
tokenbridge-contracts copied to clipboard

Rework Sacrifice contract to user create2

Open akolotov opened this issue 4 years ago • 0 comments

Currently Sacrifice.sol contract is used to send native coins to an account in case if the account is a contract reverting at the moment of receiving assets. A new Sacrifice contract with a new address is created every time when this situation happens. It consumes storage. Consider to re-use the create2 call as so a contract with the same address is being created.

akolotov avatar Oct 14 '20 22:10 akolotov