The best place to start understanding the yieldcoin codebase is the YieldPeer contract. This is inherited by the Parent and Child peers, and implements shared functionality.
From here, we can begin following key execution paths for depositing, withdrawing and handling CCIP txs.
The best place to start understanding the yieldcoin codebase is the YieldPeer contract. This is inherited by the Parent and Child peers, and implements shared functionality.
From here, we can begin following key execution paths for depositing, withdrawing and handling CCIP txs.
We want to take fee in stablecoin (as opposed to yieldcoin) because it is *probably* simpler and less prone to edge cases.
The issue with this is: if a user deposits stablecoins on a child chain, when that child is where the active strategy is, stablecoins are never sent…
starting to lean to collecting fees in stablecoin and then depositing back into yieldcoin manually until we have an automated peripheral contract to do it
rather than taking fees and depositing in the same operation, which adds complexity
Fee handling requires further simplification.
Even though invariants pass in foundry and a fee amount in stablecoin is calculated, certora reveals scenarios where that fee effectively disappears when converted to yieldcoin.
Yieldcoin fees are only implemented in the Parent. We can run our previous Certora specs to make sure the underlying base peer behavior hasn't changed.
As expected the underlying behavior still meets our previous specifications, but the Parent-specific behavior has changed
Running the yield churn strategy tracker.
The optimal strategy (from our narrow filters) was Compound V3 USDC on Optimism at 6.91% before changing to Compound V3 USDC on Arbitrum at 11.45% after 641 seconds.
Practising rust with a program that tracks how often the optimal yield generating strategy changes. This will give us an idea for how often automated Chainlink Functions requests to rebalance stablecoins should happen.
A min fee rate would be extra lines of code
We can achieve the same result by having the divisor match the stablecoin decimals, and reducing the max fee rate constant
Current max fee is 1% and min fee is 0.0001%. Fee is taken from the stablecoin deposit amount
A min fee rate would be extra lines of code
We can achieve the same result by having the divisor match the stablecoin decimals, and reducing the max fee rate constant
Current max fee is 1% and min fee is 0.0001%. Fee is taken from the stablecoin deposit amount
Even though a fee rate is set, as indicated by the ghost tracking state, fees are not being taken, as indicated by the lack of FeeTaken event.
Looks like we need a min fee rate in accordance with the min deposit. If deposit is near min and fee rate is too low, 0 fees are taken.
It is often better to go with our intuition because the answer is yes, taking a fee from the share mint amount does cause over/underflow errors.
It was still worth exploring this execution path to be sure though.
It is often better to go with our intuition because the answer is yes, taking a fee from the share mint amount does cause over/underflow errors.
It was still worth exploring this execution path to be sure though.
if the calculated yieldcoin mint amount ends up being extremely small, ie a couple of wei, will this cause denial of service or other issues, when the fee is taken from this as opposed to from the stablecoin deposit amount?
is the question of the week
26K Followers 11K Following"Your Jeet Levels Are Decreasing With Every Sell.
In Fact, They're Not Even A Challenge To Me Anymore"
DM for business on TG @fyrechartz 📩
9K Followers 5 FollowingTether is working on USA₮ which will be a dollar-backed stablecoin, designed for the Internet age.
Spend, send, and receive money instantly.
9K Followers 69 FollowingPrivate applications, easy to build.👽 Noir is an open-source programming language for building ZK applications, with familiar Rust-like syntax.
19K Followers 306 FollowingFrictionless access to real world yield - demAI coming soon. Built by a distributed team at RT Labs. Incubated by @hadronfc and part of @chainlink Build
1K Followers 258 FollowingSecurity Researcher | Resident at @cantinaxyz | From math to breaking Web3 with invariants
🐾 Occasionally just a cat staring at DeFi chaos
7K Followers 596 FollowingDr., Criminal and Blockchain Law | My Analytics Enabled Law Enforcement to Recover $200M+ from Crypto Scams. | Mediated over $100M+ in Cryptocurrency Disputes.
1K Followers 566 FollowingVP Marketing @ Chainlink Labs. Previously, AWS + Microsoft where I worked on Blockchain, ML, IoT, DevTools, Data Analytics, and Windows App Store.
10K Followers 6 FollowingBringing AI to offensive security by autonomously finding and exploiting web vulnerabilities. Watch XBOW hack things: https://t.co/D5Mco1u8zM
14K Followers 22 FollowingWeb3 Summit is organized around a single rallying call: to advance a fully functional and user-friendly decentralized web. Join us July 16-18, 2025.
692 Followers 61 FollowingReal-time, onchain security monitoring for Web3 protocols. Catch threats before they become headlines. Backed by Coinbase, Haun & others. NYC based 🇺🇸
36K Followers 10 FollowingWe're bringing the first Ethereum World's Fair to Buenos Aires, 17-22 Nov 2025. Join & see how Ethereum can fuel the city of the future. Get your ticket now 🎟️
No recent Favorites. New Favorites will appear here.