Skip to content

Commit

Permalink
reserve fix - in symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Dec 17, 2023
1 parent 361c627 commit 30621bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers/triggerAdaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ const main = async (body) => {
...p,
config_id: id, // config PK field
configID: id, // yield FK field referencing config_id in config
symbol: utils.formatSymbol(p.symbol),
symbol: ['USDC+', 'ETH+'].includes(symbol)
? symbol
: utils.formatSymbol(p.symbol),
tvlUsd: Math.round(p.tvlUsd), // round tvlUsd to integer and apy fields to n-dec
apy: +p.apy.toFixed(precision), // round apy fields
apyBase: p.apyBase !== null ? +p.apyBase.toFixed(precision) : p.apyBase,
Expand Down

0 comments on commit 30621bd

Please sign in to comment.