mirror of
https://github.com/uniwhale-io/DefiLlama-yield-server.git
synced 2026-01-12 22:45:36 +08:00
add optional url field to pool objects (#330)
This commit is contained in:
@@ -25,6 +25,7 @@ interface Pool {
|
||||
rewardTokens?: Array<string>;
|
||||
underlyingTokens?: Array<string>;
|
||||
poolMeta?: string;
|
||||
url?: string;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ describe(`Running ${process.env.npm_config_adapter} Test`, () => {
|
||||
'underlyingTokens',
|
||||
'rewardTokens',
|
||||
'poolMeta',
|
||||
'url',
|
||||
];
|
||||
const fields = [...Object.keys(baseFields), ...optionalFields, 'tvlUsd'];
|
||||
apy.forEach((pool) => {
|
||||
|
||||
@@ -148,7 +148,7 @@ const main = async (body) => {
|
||||
apyBase: p.apyBase !== null ? +p.apyBase.toFixed(precision) : p.apyBase,
|
||||
apyReward:
|
||||
p.apyReward !== null ? +p.apyReward.toFixed(precision) : p.apyReward,
|
||||
url: project.url,
|
||||
url: p.url ?? project.url,
|
||||
timestamp,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user