Rewards with FPR
How to use assets with FPR active
FPR is a way for owners to distribute rewards to their holders through deposits into the FPR pool.
In order to use a KDA to pay rewards with FPR to your holders, you must set up a KDA with FPR activated.
First of all, you need to create a KDA. Use the Create Asset Contract to create a KDA with FPR Activated. When executing the command make sure you pass
—-interestType 1
to activate the FPR in your KDA.PS: You can not upgrade an existing KDA from APR to FPR Support.
docker run -it --rm --user "$(id -u):$(id -g)" \\
-v $(pwd)/wallet:/opt/klever-blockchain \\
--network=host \\
--entrypoint=/usr/local/bin/operator \\
kleverapp/klever-go:latest \\
--key-file=./walletKey.pem \\
--node=https://node.mainnet.klever.finance \\
kda create 0 --canBurn=true --canMint=true --canFreeze=true --canPause=true --canWipe=true --logo=LOGO_URL --maxSupply=AMOUNT_MAX --precision=6 --name=KDA_NAME --ticker=KDA_TICKER —-interestType 1
After you created or updated your KDA, you need to deposit KDA to your FPR pool to be able to pay rewards to your holders.
PS: you can deposit multiple KDAs to your FPR pool to pay rewards with them.
docker run -it --rm --user "$(id -u):$(id -g)" \\
-v $(pwd)/wallet:/opt/klever-blockchain \\
--network=host \\
--entrypoint=/usr/local/bin/operator \\
kleverapp/klever-go:latest \\
--key-file=./walletKey.pem \\
--node=https://node.mainnet.klever.finance \\
kda deposit AMOUNT --depositType=0 --kdaID=YOUR_KDA_ID --currencyID=KDA_YOU_WANT_TO_PAY_REWARDS
If you are a holder and want to receive rewards.
To be able to receive rewards of a KDA with FPR you need to freeze this KDA with the following command. Make sure the asset you’re freezing supports FPR.
docker run -it --rm --user "$(id -u):$(id -g)" \\
-v $(pwd)/wallet:/opt/klever-blockchain \\
--network=host \\
--entrypoint=/usr/local/bin/operator \\
kleverapp/klever-go:latest \\
--key-file=./walletKey.pem \\
--node=https://node.mainnet.klever.finance \\
account freeze AMOUNT --kda=KDA_id_YOU_WANT_TO_FREEZE
After the reward is generated, you can claim it with the following command:
PS: You need to claim your rewards at least 100 epochs after the reward is generated.
docker run -it --rm --user "$(id -u):$(id -g)" \
-v $(pwd)/wallet:/opt/klever-blockchain \
--network=host \
--entrypoint=/usr/local/bin/operator \
kleverapp/klever-go:latest \
--key-file=./walletKey.pem \
--node=https://node.mainnet.klever.finance \
account claim 0 --id=KDA_ID_YOU_HAVE_FROZEN
Last modified 2mo ago