2

For the Pool I run I would like to setup a SmartContract which automatically claims the rewards and sends a certain percentage to each of three organisation I support.

Is such a thing possible with smart contracts?

Can a SmartContract claim rewards? Or do I have to claim the rewards "manually" and then send them to the Smart Contract to to it's work ?

4
  • Is there a reason your "three organizations" can't just stake from their own wallets and manage their own rewards? Oct 4, 2021 at 21:19
  • I wan't to support three organisations via the rewards the PoolOwner (me) earns. The idea is to establish an automatic way to donate the pool owner rewards. The Rewards of "regular" delegators are not touched by this.
    – JOxBERGER
    Oct 4, 2021 at 21:32
  • I think it would make more sense to write an off-chain script to do this for you. There is no trust involve (you already have access to your own spending key); there is no need to get the network to validate your transfers. And you are going to need a script/off-chain worker anyway to trigger the smart contract to send funds. Oct 4, 2021 at 21:45
  • Ok thnx for the clarification, I thought about offline code initially, but like the fact that a Smart contract has the distribution written in code. I guess the best solution is then be to claim the rewards manually and send them to a smart contract address. Kind of an hybrid approach.
    – JOxBERGER
    Oct 5, 2021 at 4:39

1 Answer 1

0

The funds from a smart contract can be delegated to a stake pool. So if you wanted to have all the staked funds live at the contract you could accomplish something similar to what you are proposing.

There isn't such thing as "automatically" for Plutus smart contracts. They are passive. That being said, it might still make sense for you to set it up in a way that anyone (usually you) could trigger the distribution of the rewards. Each of these transactions will cost a small fee of course.

2
  • Can you explain hat you mean by "smart pool" never heard that ?
    – JOxBERGER
    Oct 4, 2021 at 21:27
  • Typo. Meant "stake pool." Woops. Fixed it. Oct 4, 2021 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.