-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
100 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
import type { Address } from "./types"; | ||
|
||
export const ADDRESS_PROVIDER_V3 = "0x9ea7b04da02a5373317d745c1571c84aad03321d"; | ||
export const GEAR_TOKEN = "0xBa3335588D9403515223F109EdC4eB7269a9Ab5D"; | ||
export const GEAR_TOKEN = | ||
"0xBa3335588D9403515223F109EdC4eB7269a9Ab5D".toLowerCase() as Address; | ||
export const GHO_TOKEN: Address = | ||
"0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f".toLowerCase() as Address; | ||
export const POOL_USDT_V3_BROKEN = | ||
"0x1dc0f3359a254f876b37906cfc1000a35ce2d717".toLowerCase(); | ||
export const POOL_GHO_V3 = | ||
"0x4d56c9cBa373AD39dF69Eb18F076b7348000AE09".toLowerCase(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { GHO_TOKEN, POOL_GHO_V3 } from "./constants"; | ||
import type { Address, FarmInfo } from "./types"; | ||
|
||
interface ExtraRewardsInfo { | ||
getFarmInfo: (timestamp: bigint) => FarmInfo<bigint>; | ||
token: Address; | ||
} | ||
|
||
export const EXTRA_REWARDS: Record<Address, ExtraRewardsInfo[]> = { | ||
[POOL_GHO_V3]: [ | ||
{ | ||
token: GHO_TOKEN, | ||
getFarmInfo: (timestamp: bigint) => { | ||
const GHO_DECIMALS = 10n ** 18n; | ||
const REWARD_PERIOD = 14n * 24n * 60n * 60n; | ||
const REWARDS_FIRST_START = 1711448651n; | ||
const REWARDS_FIRST_END = REWARDS_FIRST_START + REWARD_PERIOD; | ||
const REWARDS_SECOND_END = REWARDS_FIRST_END + REWARD_PERIOD; | ||
const REWARD_FIRST_PART = 15000n * GHO_DECIMALS; | ||
const REWARD_SECOND_PART = 10000n * GHO_DECIMALS; | ||
const reward = | ||
timestamp >= REWARDS_FIRST_END | ||
? REWARD_SECOND_PART | ||
: REWARD_FIRST_PART; | ||
return { | ||
balance: 0n, | ||
duration: REWARD_PERIOD, | ||
finished: | ||
timestamp >= REWARDS_FIRST_END | ||
? REWARDS_SECOND_END | ||
: REWARDS_FIRST_END, | ||
reward: reward, | ||
}; | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters