Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

FT connector: register/verify storage deposit before processing the tx #164

Closed sept-en closed 2 years ago

sept-en commented 2 years ago

Token-locker in FT connector has a withdraw method that checks the proof and unlocks tokens back to the receiver by transferring them. In case the receiver doesn't pay for the storage deposit, the call will fail, and the receipt will burn. To avoid this, token-locker needs to register/verify the storage deposit before processing the tx and burning the proof.