Klever Docs
Search
K

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.

How to Set Up the Asset to support FPR

In order to use a KDA to pay rewards with FPR to your holders, you must set up a KDA with FPR activated.

1. Create an Asset with FPR Support

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

2. Deposit KDA to your holders

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

How to get rewards with FPR

If you are a holder and want to receive rewards.

1. Freeze your KDA

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

2. Claim Rewards

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