Skip to content

Commit

Permalink
fix: zora spoke config (#478)
Browse files Browse the repository at this point in the history
fix zora spoke config
  • Loading branch information
melisaguevara authored Aug 20, 2024
1 parent f3bccca commit aabf486
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/modules/configuration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ export const configValues = () => ({
],
[ChainIds.zora]: [
{
address: "0xeF684C38F94F48775959ECf2012D7E864ffb9dd4",
startBlockNumber: 18119422,
address: "0x13fDac9F9b4777705db45291bbFF3c972c6d1d97",
startBlockNumber: 18382867,
abi: JSON.stringify(SpokePoolV3Abi),
acrossVersion: AcrossContractsVersion.V3,
firstDepositId: 0,
Expand Down
1 change: 1 addition & 0 deletions src/modules/market-price/adapters/coingecko/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const symbolIdMap = {
arb: "arbitrum",
usdb: "usdb",
lsk: "lisk",
usdzc: "usd-coin-ethereum-bridged",
};

@Injectable()
Expand Down
18 changes: 9 additions & 9 deletions src/modules/scraper/adapter/messaging/FeeBreakdownConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ export class FeeBreakdownConsumer {
if (!deposit.token) throw new Error("Token not populated");
if (deposit.outputTokenAddress && !deposit.outputToken) throw new Error("Output token not populated");

if (this.marketPriceService.isTokenSupportedByPricingApi(deposit.token.symbol) === false){
if (this.marketPriceService.isTokenSupportedByPricingApi(deposit.token.symbol) === false) {
this.logger.error(`Token ${deposit.token.symbol} not supported by CoinGecko`);
return;
}
if (
deposit.outputToken &&
deposit.outputToken &&
this.marketPriceService.isTokenSupportedByPricingApi(deposit.outputToken.symbol) === false
){
) {
this.logger.error(`Token ${deposit.outputToken.symbol} not supported by CoinGecko`);
return;
}
Expand All @@ -73,11 +73,11 @@ export class FeeBreakdownConsumer {
await this.computeFeeBreakdownForV2FillEvents(deposit);
} else if (fillEventsVersion === AcrossContractsVersion.V3) {
await this.computeFeeBreakdownForV3FillEvents(deposit);

if (this.opRebateService.isDepositEligibleForOpRewards(deposit)) {
this.scraperQueuesService.publishMessage<OpRebateRewardMessage>(ScraperQueue.OpRebateReward, {
depositPrimaryKey: deposit.id,
});
this.scraperQueuesService.publishMessage<OpRebateRewardMessage>(ScraperQueue.OpRebateReward, {
depositPrimaryKey: deposit.id,
});
}
if (this.arbRebateService.isDepositEligibleForArbRewards(deposit)) {
this.scraperQueuesService.publishMessage<ArbRebateRewardMessage>(ScraperQueue.ArbRebateReward, {
Expand Down Expand Up @@ -128,8 +128,8 @@ export class FeeBreakdownConsumer {
const relayGasFeePct = bridgeFeeUsd.eq(0)
? new BigNumber(0)
: new BigNumber(relayGasFeeUsd)
.dividedBy(bridgeFeeUsd)
.multipliedBy(bridgeFeePct);
.dividedBy(bridgeFeeUsd)
.multipliedBy(bridgeFeePct);
const { pctAmount: relayGasFeeAmount } = calcPctValues(relayGasFeePct.toFixed(0));

// Swap fee computation
Expand Down

0 comments on commit aabf486

Please sign in to comment.