SDL Pool CCIP Controller Primary
The SDLPoolCCIPControllerPrimary
acts as an interface between the PrimarySDLPool
and secondary chains by handling CCIP messaging.
This contract is deployed only on the primary chain.
View Functions
getRouter
Returns the current CCIP router
Return Values
linkToken
Returns the address of the LINK token
Return Values
sdlToken
Returns the address of the SDL token
Return Values
sdlPool
Returns the address of the SDL pool
Return Values
reSDLTokenBridge
Returns the address of the reSDL bridge
Return Values
maxLINKFee
Returns the maximum CCIP fee in LINK to be paid on outgoing messages
Return Values
whitelistedDestinations
Returns the destination address for a whitelisted chain
Parameters
Return Values
updateExtraArgsByChain
Returns the CCIP extra args for sending updates for a whitelisted chain
Parameters
Return Values
rewardsExtraArgsByChain
Returns the CCIP extra args for sending rewards for a whitelisted chain
Parameters
Return Values
reSDLSupplyByChain
Returns the total reSDL supply on a whitelisted chain
Parameters
Return Values
wrappedRewardTokens
Returns the wrapper token for a reward token
Parameters
Return Values
rewardsInitiator
Returns the address of the rewards initator
Return Values
getWhitelistedChains
Returns a list of all whitelisted chains
Return Values
Write Functions
setRouter
Sets the CCIP router
Parameters
handleOutgoingRESDL
Handles the outgoing transfer of an reSDL token to another chain
Parameters
Return Values
handleIncomingRESDL
Handles the incoming transfer of an reSDL token from another chain
Parameters
ccipSend
Sends a CCIP message
Parameters
ccipReceive
Processes a received CCIP message
Parameters
recoverTokens
Withdraws tokens held by this contract
Parameters
setMaxLINKFee
Sets the maximum LINK fee to be paid on an outgoing CCIP message
Parameters
setRESDLTokenBridge
Sets the address of the reSDL token bridge
Parameters
distributeRewards
Claims and distributes rewards between all secondary chains
addWhitelistedChain
Whitelists a new chain
Parameters
removeWhitelistedChain
Removes an existing whitelisted chain
Parameters
approveRewardTokens
Approves the CCIP router to transfer tokens on behalf of this contract
Parameters
setWrappedRewardToken
Sets the wrapped token address for a reward token
Parameters
setUpdateExtraArgs
Sets the extra args used for sending updates to a chain
Parameters
setRewardsExtraArgs
Sets the extra args used for sending rewards to a chain
Parameters
setRewardsInitiator
Sets the rewards initiator
Parameters
Last updated