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.

Parameters

No parameters found in the constructor.


addMSpellRecipientnonpayablearrow-up-right

Parameters

Name
Type

recipient

address

chainId

uint256

chainIdLZ

uint256

Return values

No return values for this function.

addReporternonpayablearrow-up-right

Parameters

Name
Type

reporter

bytes

chainIdLZ

uint256

Return values

No return values for this function.

bridgeMimnonpayablearrow-up-right

Parameters

No parameters for this function.

Return values

No return values for this function.

changePurchasernonpayablearrow-up-right

Parameters

Name
Type

_purchaser

address

_treasury

address

_treasuryPercentage

uint256

Return values

No return values for this function.

Parameters

No parameters for this function.

Return values

Name
Type

canExec

bool

execPayload

bytes

claimOwnershipnonpayablearrow-up-right

Parameters

No parameters for this function.

Return values

No return values for this function.

isActiveChainviewarrow-up-right

Parameters

Name
Type

/

uint256

Return values

Name
Type

isActive

uint8

position

uint32

isOperatorviewarrow-up-right

Parameters

Name
Type

/

address

Return values

Name
Type

/

bool

lzReceivenonpayablearrow-up-right

Parameters

Name
Type

_srcChainId

uint16

_srcAddress

bytes

/

uint64

_payload

bytes

Return values

No return values for this function.

mSpellReporterviewarrow-up-right

Parameters

Name
Type

/

uint256

Return values

Name
Type

/

bytes

Parameters

No parameters for this function.

Return values

Name
Type

/

address

pendingOwnerviewarrow-up-right

Parameters

No parameters for this function.

Return values

Name
Type

/

address

recipientsviewarrow-up-right

Parameters

Name
Type

/

uint256

Return values

Name
Type

recipient

address

chainId

uint32

chainIdLZ

uint32

lastUpdated

uint32

amountStaked

uint128

setOperatornonpayablearrow-up-right

Parameters

Name
Type

operator

address

status

bool

Return values

No return values for this function.

sspellBuyBackviewarrow-up-right

Parameters

No parameters for this function.

Return values

Name
Type

/

address

transferOwnershipnonpayablearrow-up-right

Parameters

Name
Type

newOwner

address

direct

bool

renounce

bool

Return values

No return values for this function.

transferWithdrawernonpayablearrow-up-right

Parameters

Name
Type

newOwner

address

Return values

No return values for this function.

treasuryviewarrow-up-right

Parameters

No parameters for this function.

Return values

Name
Type

/

address

treasuryPercentageviewarrow-up-right

Parameters

No parameters for this function.

Return values

Name
Type

/

uint256

Events (for EVM logging)arrow-up-right


LogAddRecipientarrow-up-right

Parameters

Name
Type
Indexed

recipient

address

true

chainId

uint256

false

chainIdLZ

uint256

false

LogBridgeToRecipientarrow-up-right

Parameters

Name
Type
Indexed

recipient

address

true

amount

uint256

false

chainId

uint256

false

LogChangePurchaserarrow-up-right

Parameters

Name
Type
Indexed

_purchaser

address

false

_treasury

address

false

_treasuryPercentage

uint256

false

LogSetOperatorarrow-up-right

Parameters

Name
Type
Indexed

operator

address

true

status

bool

false

LogSetReporterarrow-up-right

Parameters

Name
Type
Indexed

chainIdLZ

uint256

true

reporter

bytes

false

LogSpellStakedReceivedarrow-up-right

Parameters

Name
Type
Indexed

srcChainId

uint16

false

timestamp

uint32

false

amount

uint128

false

OwnershipTransferredarrow-up-right

Parameters

Name
Type
Indexed

previousOwner

address

true

newOwner

address

true

Last updated