Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Apr 17, 2024
1 parent 4b684a7 commit 778f226
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.187",
"version": "3.0.188",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/schemas/yDaemonTokenListBalances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SOLVER = [
'InternalMigration',
'OptimismBooster',
'GaugeStakingBooster',
'JuicedStakingBooster',
'.',
'Cowswap',
'Portals',
'None'
Expand Down
20 changes: 11 additions & 9 deletions src/utils/schemas/yDaemonVaultsSchemas.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {zeroAddress} from 'viem';
import {z} from 'zod';
import {addressSchema} from '@builtbymom/web3/types';
import {toAddress, toBigInt} from '@builtbymom/web3/utils';
import {toBigInt} from '@builtbymom/web3/utils';

const yDaemonVaultStrategySchema = z.object({
address: addressSchema,
Expand Down Expand Up @@ -139,34 +140,35 @@ export const yDaemonVaultSchema = z.object({
.default({})
}),
featuringScore: z.number().default(0).catch(0),
retired: z.boolean().default(false).catch(false),
boosted: z.boolean().default(false).catch(false),
strategies: z.array(yDaemonVaultStrategySchema).nullable().default([]),
staking: z
.object({
address: addressSchema,
address: addressSchema.default(zeroAddress).catch(zeroAddress),
available: z.boolean().default(false).catch(false),
source: z.string().default('').catch('')
})
.default({
address: toAddress(''),
address: zeroAddress,
available: false,
source: ''
})
.catch({
address: toAddress(''),
address: zeroAddress,
available: false,
source: ''
}),
migration: z.object({
available: z.boolean(),
address: addressSchema,
contract: addressSchema
address: addressSchema.default(zeroAddress).catch(zeroAddress),
contract: addressSchema.default(zeroAddress).catch(zeroAddress)
}),
info: z.object({
sourceURL: z.string().optional().default('').catch(''),
riskLevel: z.number().optional().default(-1).catch(-1),
uiNotice: z.string().optional().default('').catch('')
uiNotice: z.string().optional().default('').catch(''),
isRetired: z.boolean().default(false).catch(false),
isBoosted: z.boolean().default(false).catch(false),
isHightlighted: z.boolean().default(false).catch(false)
})
});

Expand Down

0 comments on commit 778f226

Please sign in to comment.