erasureprotocol / erasure-protocol

Information wants to be expensive
https://erasure.world/
MIT License
162 stars 27 forks source link

Build token forwarding contract for efficient approval chains #369

Open thegostep opened 4 years ago

thegostep commented 4 years ago

Common pattern for transferring tokens is approve+call. This becomes expensive for multi-contract hops as each hop requires an transferFrom + approve call. By approving a transfer to a pre-computed wallet, ownership of the wallet could be transferred with a single storage update. This would require all wallets in the contract chain to support this approach.