Last updated a week ago
We recently upgraded to our third generation decentralized oracle architecture, led by the development at Mlabs. It is an evolution of our 2nd gen architecture previously audited by CertiK (level 2).
This is the total amount allocated to CHARLi3 - V3 Architecture Audit. 4 out of 6 milestones are completed.
1/6
Sign a contract with an auditing team and create the audit process
Cost: ₳ 75,000
Delivery: Month 1 - Apr 2024
2/6
Architecture and Code audit (first pass)
Cost: ₳ 120,000
Delivery: Month 2 - May 2024
3/6
Audit of secondary oracle systems including a security test
Cost: ₳ 143,293
Delivery: Month 3 - Jun 2024
4/6
Remediation of Issues from Audit
Cost: ₳ 24,255
Delivery: Month 4 - Jul 2024
5/6
Certified Audit Report Published
Cost: ₳ 49,782
Delivery: Month 5 - Aug 2024
6/6
Close-out Report and medium article with audit details
Cost: ₳ 72,765
Delivery: Month 6 - Sep 2024
NB: Monthly reporting was deprecated from January 2024 and replaced fully by the Milestones Program framework. Learn more here
We will contract a reliable lab (Anastasia and CertiK are viable options) to do a full audit of our on-chain code, off-chain code, and node software. Audits range from 75-150k + inhouse work.
The results of the audit will be publicly available.
If we proceed with CertiK, it will add more details to our current public CertiK "Skynet" section: https://skynet.certik.com/projects/charli3
Several parts of our architecture are open source (Datum standard, Node Software, etc) and will be available to the public for review.
We will proceed with a similar audit as we conducted with CertiK in 2022 with the appropriate outsourcing contracting team.
Existing Product
Example of our price feeds (Second Generation architecture active since Oct 2022 with 99.99999% uptime):
https://cexplorer.io/address/addr1wyd8cezjr0gcf8nfxuc9trd4hs7ec520jmkwkqzywx6l5jg0al0ya/tx#data
Documentation to consume the feed: https://docs.charli3.io/charli3s-documentation/summary
Charli3.io's decentralized oracle solution contains off-chain code that interacts with node software run by federated or external node operators. This software is parameterized by customers or in the case of community free price feeds, our team as dictated by the community. In simple terms, the node software is run by 5 operators who have specific data sources (eg APIs) to call at specific times (when triggered by an event such as a rapid price change or periodically at a set interval). Each individual node software filters data (Data Firewall) then calculates a median value to be placed on-chain to be consumed by the Charli3 on-chain oracle aggregator contract. This contract consumes values from that specific network of node operators and processes it using our proprietary algorithm. The output of the Charli3 on-chain contract is a final data value placed on-chain in our open source format for anyone to consume. In addition, our on-chain oracle contract evaluates data values placed on-chain by operators against the final value then punishes those that fall outside an acceptable range (by eliminating those operators and their value from being part of calculation and rewards, and in egregious cases having operators staked amounts slashed or in the most extreme cases legal proceedings against their insurance fund being made on behalf of paid consumers damaged by any wrong-doings.
While all this happens in mere milleseconds, we have internal alert and monitoring software that tracks in real-time all data sources, nodes, and values placed on-chain; in order to respond efficiently and proactively to potential outages.
Details of the Audit
There are multiple parts of our architecture that will be reviewed under this audit that include:
In summary:
Protocols relying on centralized or in-house solutions are taking potentially greater risks than if they used decentralized oracle data from Charli3.
Data sources go down, APIs update without notice, and in-house logic breaks without a dedicated team and monitoring solution focused 100% on ensuring up time.
Our flagship 2nd generation architecture mainnet feed (ADA/USD) has been up for over 12 months with 99.99999% uptime. Despite that track record, communities in Cardano want external independent validation that our feeds are supplied on a strong architectural foundation.
Charli3 is ready to launch our updated architecture and significantly expand our community free price feed offerings (planning on 30-50 new feeds in Q1 2024).
We want the community to trust our price feeds and an additional audit, similar to the CertiK one we completed in 2022, will gain the confidence and trust of the community to depend on our feeds.
The positive outcome will be more protocols using more secure data feeds and ensuring their users are best protected from bad, missing, or manipulated data.
Charli3 knows how audits go from our experience with CertiK. We also have good relationships with many top audit teams in the community.
The caliber and track record of the team we pick will lend trust to voters that the audit will be serve its purpose.
Anastasia Labs and CertiK are our top two choices, both with comparable costs.
Deliverable:
Audit contract is signed and public is informed of timeline/scope if different from proposal
Deliverable:
Audit is in progress.
Deliverable:
Audit Report received
Deliverable:
Roadmap for fixing issues is created and teams are assigned work to resolve them.
Deliverable:
Report after issues are resolved, may need to repeat process multiple times before passing audit.
Deliverables:
Project Lead: Robert Hever
Technical Lead: Deep Bhatt
Core Development team: charli3 team
Auditing team - Anastasia Labs or CertiK
(optional): Contracting support teams: Metalamp, MLabs
Previous Audit Cost
In 2022, CertiK conducted an audit of our second generation architecture that focused on the on-chain and off-chain code. This audit cost around USD$120,000 to have highly skilled consultants at USD$250/hr review of our solution and create reports on it. It spanned 8 weeks, with 3 audit team members working full-time for approximately for 3 weeks (2 weeks to start, 1 week to report, and part-time inbetween to support us on understanding remedies).
Previous audit cost:
3 Consultants (USD$250/hr) x 40 hours per week x 4 weeks = USD$120,000
The entire audit process took around 480 person-hours of work from their audit team. In addition to the audit team work, our own team focused entirely on the audit remedies during that time period. For our first audit, we had limited contractor teams supporting us. For this second audit, we do have contracting teams that contributed significantly to our upgraded Third Generation architecture. As such, we include costs to have those contractors work on any relevant changes to their contributions.
Third Generation / Second Audit Estimate:
Additionally, with our newest third generation architecture, our codebase is a lot larger (30% more) and our solution involves more moving parts including Alert and Monitoring systems, Data Firewalls, and significantly more complex solutions written in both the off-chain and on-chain code.
Estimated Breakdown of costs:
TOTAL FUNDING: 485,000 ADA at today's ADA/USD rate
Context:
Charli3 has focused exclusively on delivering data through node networks accurately and securely since 2021. Our flagship ADA/USD feed has been active on Cardano mainnet since Oct 2022 with 99.99999% uptime. We are the only solution that is Cardano native in the sense that our node operators post their data values on-chain fully transparent and auditable, and our consensus algorithm occurs on-chain, fully transparent and auditable. Whereas other solutions simply post values on-chain and all other transactions/processes are not natively on Cardano, Charli3 is completely native to the chain.
Demand of the ecosystem:
If the ecosystem has increased confidence that our data price feeds are accurate, reliable, and secure, then more builders/protocols will consume them. Shifting from in-house solutions to a dedicated fully focused decentralized oracle solution will increase security on those protocols and protect users. Thus uplifting the ecosystem as a whole to the standards of other chains (e.g. Link/Pyth/Supra on ETH).
Audit aligns with our launch plans:
Charli3 will be launching 30+ price feeds for in Q4 2023 to Q1 2024 that are freely available for public consumption. This is catalyst funded and community driven. These are long delayed, but ready with our new architecture to launch. An audit will bolster confidence in the community that these feeds are dependable. Where builders can slap together a couple APIs and a multi-sig then take risks that data sources go down, multi-sig processes fail, or black swan events stress their system, they now have an audited free option to use feeds that pulls from 14+ APIs has 5 nodes and a team fully dedicated on ensuring uptimes. For example, 7 data sources could go down for our Third Generation ADA/USD feed and 2 nodes could go off-line and our feed would still supply reliable and accurate data from their sources on-chain. With our alert and monitoring system, we are proactively looking for an anticipating downtime to resolve with our dedicated support team. This is may be in place with in-house data integration solutions, but likely not.
An audit increases trust with the community to use our free community feeds and that will make the Cardano ecosystem more secure and inviting for new users to the chain... it will bring new users to protocols that use our feeds too.
An audit will provide the confidence and trust of builders to use those feeds, thus saving them thousands of dollars a month on data costs using other solutions -- or even worse -- if they do not use a dedicated solution like ours, they risk catastrophic data issues such as de-pegging in DeFi protocols or stale data missing deviations during times of volatility. As we move into the bull market that is potentially coming, this risk is greatly increased.
The Charli3 feeds do not pull data from 3-5 sources, but sometimes 10+ so a single price feed cycle contains 70+ API calls and 100s of "triangulations". We hope an audit can help gain the confidence of the community to start using our service we spent 2+ years refining.