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
Constructornonpayable
nonpayableParameters
No parameters found in the constructor.
Functions
addMSpellRecipientnonpayable
addMSpellRecipientnonpayableParameters
recipient
address
chainId
uint256
chainIdLZ
uint256
Return values
No return values for this function.
addReporternonpayable
addReporternonpayableParameters
reporter
bytes
chainIdLZ
uint256
Return values
No return values for this function.
bridgeMimnonpayable
bridgeMimnonpayableParameters
No parameters for this function.
Return values
No return values for this function.
changePurchasernonpayable
changePurchasernonpayableParameters
_purchaser
address
_treasury
address
_treasuryPercentage
uint256
Return values
No return values for this function.
checkerview
checkerviewParameters
No parameters for this function.
Return values
canExec
bool
execPayload
bytes
claimOwnershipnonpayable
claimOwnershipnonpayableParameters
No parameters for this function.
Return values
No return values for this function.
isActiveChainview
isActiveChainviewParameters
/
uint256
Return values
isActive
uint8
position
uint32
isOperatorview
isOperatorviewParameters
/
address
Return values
/
bool
lzReceivenonpayable
lzReceivenonpayableParameters
_srcChainId
uint16
_srcAddress
bytes
/
uint64
_payload
bytes
Return values
No return values for this function.
mSpellReporterview
mSpellReporterviewParameters
/
uint256
Return values
/
bytes
ownerview
ownerviewParameters
No parameters for this function.
Return values
/
address
pendingOwnerview
pendingOwnerviewParameters
No parameters for this function.
Return values
/
address
recipientsview
recipientsviewParameters
/
uint256
Return values
recipient
address
chainId
uint32
chainIdLZ
uint32
lastUpdated
uint32
amountStaked
uint128
setOperatornonpayable
setOperatornonpayableParameters
operator
address
status
bool
Return values
No return values for this function.
sspellBuyBackview
sspellBuyBackviewParameters
No parameters for this function.
Return values
/
address
transferOwnershipnonpayable
transferOwnershipnonpayableParameters
newOwner
address
direct
bool
renounce
bool
Return values
No return values for this function.
transferWithdrawernonpayable
transferWithdrawernonpayableParameters
newOwner
address
Return values
No return values for this function.
treasuryview
treasuryviewParameters
No parameters for this function.
Return values
/
address
treasuryPercentageview
treasuryPercentageviewParameters
No parameters for this function.
Return values
/
uint256
Events (for EVM logging)
LogAddRecipient
LogAddRecipientParameters
recipient
address
true
chainId
uint256
false
chainIdLZ
uint256
false
LogBridgeToRecipient
LogBridgeToRecipientParameters
recipient
address
true
amount
uint256
false
chainId
uint256
false
LogChangePurchaser
LogChangePurchaserParameters
_purchaser
address
false
_treasury
address
false
_treasuryPercentage
uint256
false
LogSetOperator
LogSetOperatorParameters
operator
address
true
status
bool
false
LogSetReporter
LogSetReporterParameters
chainIdLZ
uint256
true
reporter
bytes
false
LogSpellStakedReceived
LogSpellStakedReceivedParameters
srcChainId
uint16
false
timestamp
uint32
false
amount
uint128
false
OwnershipTransferred
OwnershipTransferredParameters
previousOwner
address
true
newOwner
address
true
Last updated