package
0.0.0-20241211142332-01411649f3c8
Repository: https://github.com/yearn/ydaemon.git
Documentation: pkg.go.dev

# README

Utils

In the utils package, we have all the functions that could not fit in a specific package.
We are storing them the Environment variable setup, the constant we may need to use across the program, some very specific utilities, etc.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Contains returns true if value exists in arr.
ContainsSubString returns true if value exists in arr arr are assumed to contain the substrings of value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EndsWithSubstring returns true if value exists in arr.
No description provided by the author
FormatAmount is used to convert a uint256 string to a float64, based on the provided decimal.
FormatUint64 is used to convert a string to a uint64, and returns the second value if the first one if invalid.
*********************************************************************************************** ** GetEvolution calculates the evolution based on the final value (vf), initial value (vi), and ** the number of days (days).
GetFIFOForUser construct the basic graphQL request to get all the deposits and withdrawals for a user for a given vault.
GetHarvestsForVaults construct the basic graphQL request to get the harvests for a vault with all the minimal elements to format the data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetStrategyReports construct the basic graphQL request to get the reports.
Intersects returns true if both arrays have at least one element in common.
ReadAllFilesInDir is used to grab the content of all the files in a specific directory, matching the suffix condition.
RemoveFromArray is used to find and remove an element from an array.
* 🔵 - Yearn ************************************************************************************* ** SafeString will return s if s is a valid string, otherwise it will use ** the defaultValue **************************************************************************************************/.
* 🔵 - Yearn ************************************************************************************* ** SafeStringToUint64 will return n if n is a valid uint64, otherwise it will use ** the defaultValue **************************************************************************************************/.
No description provided by the author
No description provided by the author
************************************************************************************************* ** Convert a raw amount to a normalized amount.
No description provided by the author
No description provided by the author
No description provided by the author
UniqueArrayAddress is used to find and remove duplicate from an array of ethereum addresses.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author