livepeer / protocol

Livepeer protocol
MIT License
152 stars 45 forks source link

Confluence: Add fundDepositAndReserveFor() in TicketBroker #502

Closed yondonfu closed 2 years ago

yondonfu commented 2 years ago

Support funding deposit and reserve for a specified address.

At the moment, calling fundDepositAndReserve() will pull ETH from msg.sender and credit it to msg.sender in the TicketBroker.

We can add fundDepositAndReserveFor() which accepts an owner address and it will pull ETH from msg.sender and credit to owner in the TicketBroker.

This is required for the finalizeMigrateSender() logic in https://github.com/livepeer/arbitrum-lpt-bridge/pull/30 which is used to migrate a deposit and reserve from L1 to L2.

Should go to confluence branch.

yondonfu commented 2 years ago

Closed by #510