Before going in-depth, I’m giving credit to @wanwiset for his research on this topic.
XDC subnet by Design, along with the subnet’s consensus, uses Sovereign-Rollup to send the batches of XDC Mainnet to add additional security to Subnet through middlewares called Relyer and Checkpoint smart contract.
This post focuses on the gas consideration when a subnet sends a batch to Mainnet and the relayer basically will pay for the gas on Mainnet. Also, going deeper into post-XDC2.0.
Note: Post-XDC2.0 means the gas fee has been increased 50x. Link
Assume the current price of XDC is 0.03 USD:
1000 XDC is ~30 USD,
if one block is mined every 2 seconds,
1000 blocks cost 5 XDC, then
1000 XDC can checkpoint 200,000 blocks,
The result is, that it will take ~4-6 days to reach 200,000 blocks
AND ~30 USD / 5 days(on average) = ~6 USD per day.
This means a subnet’s relayer will be charged ~6 USD per day to post/checkpoint Blocks on mainnet.
This post is just a workout on the Subnet to bring more related conversations and start building Subnet community around it. Check out Subnet docs here
Pls, leave your thoughts and feedback below.
Thanks for reading, Cheers!