-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add revenue moneyfi #4317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add revenue moneyfi #4317
Conversation
The moneyfi adapter exports:
|
The moneyfi adapter exports:
|
The moneyfi adapter exports:
|
The moneyfi adapter exports:
|
1 similar comment
The moneyfi adapter exports:
|
The moneyfi adapter exports:
|
The moneyfi adapter exports:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix these
|
||
|
||
const fetch = async (options: FetchOptions) => { | ||
const dailyFees = options.createBalances(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to also track yield earned by user through the protocol too. i've added methodology
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TuanTwendee we need to track this, too, is there any fixed % which goes to the protocol from generated yield? what's formula?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are collecting 20% from user profits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add this as as protocolrevenue and remaining 80% as the supplysiderevenue
const adapter: SimpleAdapter = { | ||
version: 2, | ||
fetch, | ||
chains: [CHAIN.APTOS], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add all chains where moneyfi operates, core and base
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are currently working on Aptos only, we will update it next time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay then it's fine as long aptos is your main chain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
let usdTotal = 0; | ||
results.forEach((res, i) => { | ||
const raw = BigInt(Array.isArray(res.data) ? res.data[0] : res.data); | ||
usdTotal += (Number(raw) * 5) / 10 ** TOKENS[i].decimals; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will run this adapter daily so we have to make sure it doesn't add the fees in cumulative way, it should only return any given day fees.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am calculating the total amount from past to present. Do you want me to pay interest for each day I can call through my API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's daily protocol fees, so it has to only show current day fees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
our contract doesn't have that now can i make API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but plz add methodology you use for calculating the protocol fees share
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oke thanks you
i meant these |
Name (to be shown on DefiLlama):
MoneyFi
Twitter Link:
https://x.com/MoneyFiHub
List of audit links if any:
Website Link:
https://app.moneyfi.fund/
Logo (High resolution, will be shown with rounded borders):
https://app.moneyfi.fund/icons/logo.svg
Current TVL:
279.315k$
Treasury Addresses (if the protocol has treasury)
Chain:
arbitrum, base, bsc, ethereum, soneium , core , optimism
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama):
The MoneyFi Smart Stablecoin Vault auto-distributes funds across multiple chains and protocols to maximize yield—no manual management or DeFi expertise required. Deposit anytime, withdraw anytime, and let MoneyFi handle the rest.
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one:
Yield Aggregrator
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
TVL is fetched directly from the project's backend and represents token balances on each chain
Github org/user (Optional, if your code is open source, we can track activity):