MagpieCelerBridge

MagpieCelerBridge, which serves as an intermediary to handle deposits, withdrawals, and refunds of assets between Magpie Aggregator and Celer Network.

It has two modifiers:

onlyMagpieAggregator:

Restricts functions to only be called by the Magpie Aggregator.

onlyCeler:

Restricts functions to only be called by the Celer Network.

It contains the following functions:

updateSettings():

Allows the owner to update the contract settings.

Input

FieldTypeDescription

deposit():

Handles the deposit process by receiving funds, approving tokens, sending them to the liquidity bridge, and notifying the message bus.

Input

withdraw():

Handles withdrawal requests from deposited amounts.

Input

FieldTypeDescription

Output

FieldTypeDescription

The withdrawal amount

executeMessageWithTransfer():

Receives transfers and updates the deposited amounts accordingly.

Input

FieldTypeDescription

Output

FieldTypeDescription

executeMessageWithTransferRefund():

Manages refunds to the designated recipient.

Input

FieldTypeDescription

Output

FieldTypeDescription

Last updated