Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PAXG rewards on misconfigured markets #69

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions src/market-programs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1152,30 +1152,16 @@ export const marketPrograms: MarketRewardProgramArgs[] = [
chainId: ChainId.MAINNET,
},
// USDC/PAXG 3.15 PAXG on Mainnet 10/08/2024 11/08/2024 1pm GMT
// Updated to 0.998999495967741936 PAXG from 10/08/2024 to 10/18/2024 because of market misconfiguration
{
start: 1728392400n,
end: 1731070800n,
end: 1729241835n,
fundsSender: "0x264bd8291fAE1D75DB2c5F573b07faA6715997B5",
urdAddress: "0x330eefa8a787552DC5cAd3C3cA644844B1E61Ddb",
tokenAddress: "0x45804880De22913dAFE09f4980848ECE6EcbAf78",
marketId: "0x8eaf7b29f02ba8d8c1d7aeb587403dcb16e2e943e4e2f5f94b0963c2386406c9",
rewardAmount: {
supply: parseUnits("3.15", 18),
borrow: 0n,
collateral: 0n,
},
chainId: ChainId.MAINNET,
},
// USDC/PAXG 6.35 PAXG on Mainnet 11/08/2024 12/08/2024 1pm GMT
{
start: 1731070800n,
end: 1733662800n,
fundsSender: "0x264bd8291fAE1D75DB2c5F573b07faA6715997B5",
urdAddress: "0x330eefa8a787552DC5cAd3C3cA644844B1E61Ddb",
tokenAddress: "0x45804880De22913dAFE09f4980848ECE6EcbAf78",
marketId: "0x8eaf7b29f02ba8d8c1d7aeb587403dcb16e2e943e4e2f5f94b0963c2386406c9",
rewardAmount: {
supply: parseUnits("6.35", 18),
supply: parseUnits("0.998999495967741936", 18),
borrow: 0n,
collateral: 0n,
},
Expand Down