CrossChainTellerBase
Inherits: TellerWithMultiAssetSupport
Base contract for the CrossChainTeller, includes functions to overload with specific bridge method
Functions
constructor
depositAndBridge
function to deposit into the vault AND bridge crosschain in 1 call
Parameters
Name | Type | Description |
---|---|---|
|
| ERC20 to deposit |
|
| amount of deposit asset to deposit |
|
| minimum required shares to receive |
|
| Bridge Data |
previewFee
Preview fee required to bridge shares in a given feeToken.
bridge
bridging code to be done without deposit, for users who already have vault tokens
Parameters
Name | Type | Description |
---|---|---|
|
| to bridge |
|
| bridge data |
_bridge
the virtual bridge function to be overridden
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| bridge data |
Returns
Name | Type | Description |
---|---|---|
|
| messageId |
_quote
the virtual function to override to get bridge fees
Parameters
Name | Type | Description |
---|---|---|
|
| to send |
|
| bridge data |
_beforeBridge
after bridge code, just an emit but can be overridden
the before bridge hook to perform additional checks
Parameters
Name | Type | Description |
---|---|---|
|
| bridge data |
_afterBridge
after bridge code, just an emit but can be overridden
Parameters
Name | Type | Description |
---|---|---|
|
| share amount burned |
|
| bridge data |
|
| message id returned when bridged |
_beforeReceive
a before receive hook to call some logic before a receive is processed
_afterReceive
a hook to execute after receiving
Parameters
Name | Type | Description |
---|---|---|
|
| the shareAmount that was minted |
|
| the receiver of the shares |
|
| the message ID |