Nexus Bridge ETH
Deposit Validator: This is the main function that needs to be present in the rollup bridge contract as it enables the creation of validators. This function can only be called from the Nexus Contract
Set Nexus Fee: This function enables setting a fee percentage for Nexus Network that is transferred from the rewards accumulated
Update Slashing: This function updates the slashing details if it happens for a particular validator
Get Rewards Accumulated: This function shows the amount of rewards that have accumulated and can be claimed.
Exit Validator: Whenever a validator exits and its balance is transferred back to the bridge contract, this function is called to update the exited validator count. This ensures that the bridge contract can differentiate between ETH received through validator exits and staking returns.
Claiming of staking rewards has two possible architectures and implements a few more functionalities apart from the above depending on the architecture selected by the Rollup for reward management.
Integration:
For integration with Nexus Network, a rollup has two options:
Deploy nexus-package as a library: If a rollup bridge contract is more than 23 kb in size, it needs to deploy the nexus-package as a library. This way they can make
delegatecall
to the library and perform the execution on their bridge contractIntegrate the nexus-package with bridge contract code: If a rollup bridge contract is less than 23 kb in size, it can directly import the nexus-package in its bridge contract
Last updated