Skip to content

$PANDA Claim流程方案 #2

@duloti53

Description

@duloti53

方案流程:

PandaClaim

实现要点:

Back-end: 分红周期快到的时候,根据收益模型计算出所有账户的收益MerkleTree模型,并把MerkleRoot给Contract;后面根据Front-end请求返回账户的分红代币数Amount与MerkleProof;收到Front-end发送的ClaimNotify将该账户置位,记录该账户已经领取

Contract:分红周期快到的时候,多签钱包将代币打到Claim合约,合约所有者重新设置MerkleRoot;用户该周期领取奖励之后,合约记录已领取;

Front-end: 提供wallet登录,向Back-end发送Claim请求,向Contract发送Claim调用,Claim完成之后向Back-end发送已Claim请求。

Metadata

Metadata

Assignees

No one assigned

    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