Skip to content

Commit

Permalink
feat: add zora and redstone to op rebates (#481)
Browse files Browse the repository at this point in the history
Co-authored-by: amateima <[email protected]>
  • Loading branch information
amateima and amateima authored Aug 27, 2024
1 parent 87fc26e commit 630cde5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,7 @@ flowchart TD

H --> |TokenPriceQueueMsg| M(TokenPriceQueue)
```
## OP Rebates
Deposits sent to an OP stack chain accruel OP rewards. New chains can be added as needed by editing [this line](https://github.com/across-protocol/scraper-api/blob/master/src/modules/rewards/services/op-rebate-service.ts#L263-L265).
8 changes: 7 additions & 1 deletion src/modules/rewards/services/op-rebate-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ import { ReferralRewardsWindowJobResult } from "../model/RewardsWindowJobResult.

const OP_REBATE_RATE = 0.95;
const REWARDS_PERCENTAGE_LIMIT = 0.0025; // 25 bps
const ELIGIBLE_OP_REWARDS_CHAIN_IDS = [ChainIds.base, ChainIds.mode, ChainIds.optimism];
const ELIGIBLE_OP_REWARDS_CHAIN_IDS = [
ChainIds.base,
ChainIds.mode,
ChainIds.optimism,
ChainIds.zora,
ChainIds.redstone,
];

const partialDepositKeys: (keyof Deposit)[] = [
"id",
Expand Down

0 comments on commit 630cde5

Please sign in to comment.