0xPolygon / polygon-edge

A Framework for Building Ethereum-compatible Blockchain Networks
https://polygon.technology/solutions/polygon-edge/
Apache License 2.0
1.02k stars 534 forks source link

Staking on root chain with other token #1548

Closed polygomic closed 1 year ago

polygomic commented 1 year ago

Can we generate ERC20 token on root chain and stake on it or should stake main coin of rootchain ,I mean if my chain was mumbai I only should stake matic or can generate new ERC20 token on mumbai and use it for stake

Description

Describe your issue in as much detail as possible here.

Your environment

Steps to reproduce

Expected behavior

Logs

Provide us with debug logs from all of your validators by setting logging to debug output with: server --log-level debug

Proposed solution

If you have an idea on how to fix this issue, please write it down here, so we can begin discussing it

abdec2 commented 1 year ago

i have a same question. did you find the answer?

sahil3Vedi commented 1 year ago

Hi @polygomic, We need to deploy our own ERC20 token on the rootchain. Refer Step 4 here: https://github.com/nonceblox/polygon-edge-tutorials/blob/master/supernets_v0.9_setup.md#4-deploy-stakemanager-contract-to-rootchain-mumbai-in-this-case

goran-ethernal commented 1 year ago

Yes you can have your own ERC20 token, and use it for staking. Note that your token has to be already deployed on rootchain before doing stake-manager-deploy command. But, if you are using Mumbai, we suggest to use WMATIC as your stake token.