mSpellSender
Contract pulling MIM from the Withdrawer and distributing it.
mSPELL sender is responsible from claiming the fees in the Withdrawer (it is the owner of the withdrawer and can access funds this way) and distributing it to the 3 recipients:
the Treasury (based on the treasuryPercentage value)
Staking contracts, divided into:
sSPELL (based on the amount of SPELL staked)
mSPELL (based on the total amount of SPELL staked on all chains)
For mSPELL specifically, the sender will bridge the funds to the mSpellStaking contracts in the right amount (based on the amount of SPELL staked) on all chains.
Constructor
Constructor
nonpayable
nonpayable
Parameters
No parameters found in the constructor.
Functions
addMSpellRecipientnonpayable
addMSpellRecipientnonpayable
Parameters
Name | Type |
---|---|
recipient |
|
chainId |
|
chainIdLZ |
|
Return values
No return values for this function.
addReporternonpayable
addReporternonpayable
Parameters
Name | Type |
---|---|
reporter |
|
chainIdLZ |
|
Return values
No return values for this function.
bridgeMimnonpayable
bridgeMimnonpayable
Parameters
No parameters for this function.
Return values
No return values for this function.
changePurchasernonpayable
changePurchasernonpayable
Parameters
Name | Type |
---|---|
_purchaser |
|
_treasury |
|
_treasuryPercentage |
|
Return values
No return values for this function.
checkerview
checkerview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
canExec |
|
execPayload |
|
claimOwnershipnonpayable
claimOwnershipnonpayable
Parameters
No parameters for this function.
Return values
No return values for this function.
isActiveChainview
isActiveChainview
Parameters
Name | Type |
---|---|
/ |
|
Return values
Name | Type |
---|---|
isActive |
|
position |
|
isOperatorview
isOperatorview
Parameters
Name | Type |
---|---|
/ |
|
Return values
Name | Type |
---|---|
/ |
|
lzReceivenonpayable
lzReceivenonpayable
Parameters
Name | Type |
---|---|
_srcChainId |
|
_srcAddress |
|
/ |
|
_payload |
|
Return values
No return values for this function.
mSpellReporterview
mSpellReporterview
Parameters
Name | Type |
---|---|
/ |
|
Return values
Name | Type |
---|---|
/ |
|
ownerview
ownerview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
pendingOwnerview
pendingOwnerview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
recipientsview
recipientsview
Parameters
Name | Type |
---|---|
/ |
|
Return values
Name | Type |
---|---|
recipient |
|
chainId |
|
chainIdLZ |
|
lastUpdated |
|
amountStaked |
|
setOperatornonpayable
setOperatornonpayable
Parameters
Name | Type |
---|---|
operator |
|
status |
|
Return values
No return values for this function.
sspellBuyBackview
sspellBuyBackview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
transferOwnershipnonpayable
transferOwnershipnonpayable
Parameters
Name | Type |
---|---|
newOwner |
|
direct |
|
renounce |
|
Return values
No return values for this function.
transferWithdrawernonpayable
transferWithdrawernonpayable
Parameters
Name | Type |
---|---|
newOwner |
|
Return values
No return values for this function.
treasuryview
treasuryview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
treasuryPercentageview
treasuryPercentageview
Parameters
No parameters for this function.
Return values
Name | Type |
---|---|
/ |
|
Events (for EVM logging)
LogAddRecipient
LogAddRecipient
Parameters
Name | Type | Indexed |
---|---|---|
recipient |
|
|
chainId |
|
|
chainIdLZ |
|
|
LogBridgeToRecipient
LogBridgeToRecipient
Parameters
Name | Type | Indexed |
---|---|---|
recipient |
|
|
amount |
|
|
chainId |
|
|
LogChangePurchaser
LogChangePurchaser
Parameters
Name | Type | Indexed |
---|---|---|
_purchaser |
|
|
_treasury |
|
|
_treasuryPercentage |
|
|
LogSetOperator
LogSetOperator
Parameters
Name | Type | Indexed |
---|---|---|
operator |
|
|
status |
|
|
LogSetReporter
LogSetReporter
Parameters
Name | Type | Indexed |
---|---|---|
chainIdLZ |
|
|
reporter |
|
|
LogSpellStakedReceived
LogSpellStakedReceived
Parameters
Name | Type | Indexed |
---|---|---|
srcChainId |
|
|
timestamp |
|
|
amount |
|
|
OwnershipTransferred
OwnershipTransferred
Parameters
Name | Type | Indexed |
---|---|---|
previousOwner |
|
|
newOwner |
|
|
Last updated