Skip to content

Staking Reward contract #7

@jaybuidl

Description

@jaybuidl

Options 1: same as V1

  • Deploy the contract using MerkleRedeem.sol
  • Make sure to commit the deployment artifact to both the pnk-merkle-drop repo and this repository.
  • The court frontend can depend on the artifact from this repo to implement Claim PNK kleros-v2#265

In the long term pnk-merkle-drop should be migrated to Solidity 0.8, recent libraries and added as a package in this repo.

Option 2: contract + Sablier

  • Snapshot contract
    • getRewards(user): to compute each PNK's staking duration since the last snapshot
    • snapshot()
  • Sablier for distribution
    • option a) generate the airdrop data with a script, then upload to Sablier
    • option b) programatically create the aidrop with Sablier somehow

Requirements

  • Possible to update the rewards computations
  • Process to handle adjustments: ad-hoc computations and aidrop creation

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions