Skip to content

hop-protocol/fee-refund

Repository files navigation

Fee Refund

A tool to calculate the amount of tokens to refund to users.

Getting Started

Seed data and calculate rewards

Development

const feeRefund = new FeeRefund({
  dbDir,
  rpcUrls,
  merkleRewardsContractAddress,
  startTimestamp,
  refundPercentage,
  refundChain,
  refundTokenSymbol
})

await feeRefund.seed()
await feeRefund.calculateFees()

Example output from calculateFees():

{
  "0x0000000000000000000000000000000000000000": "2235844954569473400",
  "0x0000000000000000000000000000000000000001": "1805976165462823000",
  "0x0000000000000000000000000000000000000002": "957778160370229000"
}

Test

npm run test

Lint

eslint

npm run eslint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published