Skip to content

Conversation

TuanTwendee
Copy link

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):

@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Start Date:	Mon, 29 Sep 2025 06:55:39 GMT
End Date:	Tue, 30 Sep 2025 06:55:39 GMT
---------------------------------------------------

APTOS 👇
Backfill start time: 4/8/2025
Daily protocol revenue: 2.46 k
End timestamp: 1759215338 (2025-09-30T06:55:38.000Z)

@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Start Date:	Mon, 29 Sep 2025 07:00:57 GMT
End Date:	Tue, 30 Sep 2025 07:00:57 GMT
---------------------------------------------------

Error: "FeesCollected" is not a supported metric.Supported metrics can be found in adapters/types.ts
    at /home/runner/work/dimension-adapters/dimension-adapters/cli/utils.ts:32:19
    at Array.forEach (<anonymous>)
    at printVolumes (/home/runner/work/dimension-adapters/dimension-adapters/cli/utils.ts:30:10)
    at printVolumes2 (/home/runner/work/dimension-adapters/dimension-adapters/cli/utils.ts:77:37)
    at /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:70:16
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Start Date:	Mon, 29 Sep 2025 07:01:49 GMT
End Date:	Tue, 30 Sep 2025 07:01:49 GMT
---------------------------------------------------

APTOS 👇
Backfill start time: 4/8/2025
Daily protocol revenue: 2.46 k
End timestamp: 1759215708 (2025-09-30T07:01:48.000Z)

@treeoflife2 treeoflife2 self-assigned this Sep 30, 2025
@treeoflife2 treeoflife2 self-requested a review October 2, 2025 08:49
@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Error: Unknown env key: APTOS_PRC
    at getEnv (/home/runner/work/dimension-adapters/dimension-adapters/helpers/env.ts:83:33)
    at Object.<anonymous> (/home/runner/work/dimension-adapters/dimension-adapters/fees/moneyfi/index.ts:7:20)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module.m._compile (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Object.require.extensions.<computed> [as .ts] (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)

1 similar comment
@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Error: Unknown env key: APTOS_PRC
    at getEnv (/home/runner/work/dimension-adapters/dimension-adapters/helpers/env.ts:83:33)
    at Object.<anonymous> (/home/runner/work/dimension-adapters/dimension-adapters/fees/moneyfi/index.ts:7:20)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module.m._compile (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Object.require.extensions.<computed> [as .ts] (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)

@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Error: Unknown env key: APTOS_PRC
    at getEnv (/home/runner/work/dimension-adapters/dimension-adapters/helpers/env.ts:83:33)
    at Object.<anonymous> (/home/runner/work/dimension-adapters/dimension-adapters/fees/moneyfi/index.ts:7:20)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module.m._compile (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Object.require.extensions.<computed> [as .ts] (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)

@llamabutler
Copy link

The moneyfi adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts fees moneyfi

🦙 Running MONEYFI adapter 🦙
---------------------------------------------------
Start Date:	Wed, 01 Oct 2025 06:29:33 GMT
End Date:	Thu, 02 Oct 2025 06:29:33 GMT
---------------------------------------------------

TypeError: Cannot convert undefined to a BigInt
    at BigInt (<anonymous>)
    at /home/runner/work/dimension-adapters/dimension-adapters/fees/moneyfi/index.ts:36:17
    at Array.forEach (<anonymous>)
    at fetch (/home/runner/work/dimension-adapters/dimension-adapters/fees/moneyfi/index.ts:35:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:220:18)
    at async Promise.all (index 0)
    at async _runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:173:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:69:24 {
  chain: 'aptos'
}

Copy link
Member

@treeoflife2 treeoflife2 left a 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();
Copy link
Member

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

Copy link
Member

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?

Copy link
Author

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

Copy link
Member

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],
Copy link
Member

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

Copy link
Author

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

Copy link
Member

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.

Copy link
Author

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;
Copy link
Member

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.

Copy link
Author

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?

Copy link
Member

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

Copy link
Author

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?

Copy link
Member

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oke thanks you

@TuanTwendee
Copy link
Author

please fix these

Screenshot 2025-10-02 at 4 19 41 PM

I run "yarn test fees moneyfi" it's working

@treeoflife2
Copy link
Member

please fix these

Screenshot 2025-10-02 at 4 19 41 PM I run "yarn test fees moneyfi" it's working

i meant these
#4317 (comment)
#4317 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants