AI EXPRESS - Hot Deal 4 VCs instabooks.co
  • AI
    AI think tank calls GPT-4 a risk to public safety

    AI think tank calls GPT-4 a risk to public safety

    Skillprint launches science-backed platform to match players with the right skill-based games

    Skillprint launches science-backed platform to match players with the right skill-based games

    Got It AI’s ELMAR challenges GPT-4 and LLaMa, scores well on hallucination benchmarks

    Got It AI’s ELMAR challenges GPT-4 and LLaMa, scores well on hallucination benchmarks

    Don't be fooled by AI washing: 3 questions to ask before you invest

    5 ways machine learning must evolve in a difficult 2023

    OpenAI's GPT-4 violates FTC rules, argues AI policy group

    OpenAI’s GPT-4 violates FTC rules, argues AI policy group

    Google advances AlloyDB, BigQuery at Data Cloud and AI Summit

    Google advances AlloyDB, BigQuery at Data Cloud and AI Summit

  • ML
    Recommend top trending items to your users using the new Amazon Personalize recipe

    Recommend top trending items to your users using the new Amazon Personalize recipe

    Snapper provides machine learning-assisted labeling for pixel-perfect image object detection

    Snapper provides machine learning-assisted labeling for pixel-perfect image object detection

    Achieve effective business outcomes with no-code machine learning using Amazon SageMaker Canvas

    Achieve effective business outcomes with no-code machine learning using Amazon SageMaker Canvas

    HAYAT HOLDING uses Amazon SageMaker to increase product quality and optimize manufacturing output, saving $300,000 annually

    HAYAT HOLDING uses Amazon SageMaker to increase product quality and optimize manufacturing output, saving $300,000 annually

    Enable predictive maintenance for line of business users with Amazon Lookout for Equipment

    Enable predictive maintenance for line of business users with Amazon Lookout for Equipment

    Build custom code libraries for your Amazon SageMaker Data Wrangler Flows using AWS Code Commit

    Build custom code libraries for your Amazon SageMaker Data Wrangler Flows using AWS Code Commit

    Access Snowflake data using OAuth-based authentication in Amazon SageMaker Data Wrangler

    Access Snowflake data using OAuth-based authentication in Amazon SageMaker Data Wrangler

    Enable fully homomorphic encryption with Amazon SageMaker endpoints for secure, real-time inferencing

    Enable fully homomorphic encryption with Amazon SageMaker endpoints for secure, real-time inferencing

    Will ChatGPT help retire me as Software Engineer anytime soon? – The Official Blog of BigML.com

    Will ChatGPT help retire me as Software Engineer anytime soon? –

  • NLP
    ChatGPT, Large Language Models and NLP – a clinical perspective

    ChatGPT, Large Language Models and NLP – a clinical perspective

    What could ChatGPT mean for Medical Affairs?

    What could ChatGPT mean for Medical Affairs?

    Want to Improve Clinical Care? Embrace Precision Medicine Through Deep Phenotyping

    Want to Improve Clinical Care? Embrace Precision Medicine Through Deep Phenotyping

    Presight AI and G42 Healthcare sign an MOU

    Presight AI and G42 Healthcare sign an MOU

    Meet Sketch: An AI code Writing Assistant For Pandas

    Meet Sketch: An AI code Writing Assistant For Pandas

    Exploring The Dark Side Of OpenAI's GPT Chatbot

    Exploring The Dark Side Of OpenAI’s GPT Chatbot

    OpenAI launches tool to catch AI-generated text

    OpenAI launches tool to catch AI-generated text

    Year end report, 1 May 2021- 30 April 2022.

    U.S. Consumer Spending Starts to Sputter; Labor Report to Give Fed Look at Whether Rate Increases Are Cooling Rapid Wage Growth

    Meet ETCIO SEA Transformative CIOs 2022 Winner Edmund Situmorang, CIOSEA News, ETCIO SEA

    Meet ETCIO SEA Transformative CIOs 2022 Winner Edmund Situmorang, CIOSEA News, ETCIO SEA

  • Vision
    Data2Vec: Self-supervised general framework

    Data2Vec: Self-supervised general framework

    NVIDIA Metropolis Ecosystem Grows With Advanced Development Tools to Accelerate Vision AI

    NVIDIA Metropolis Ecosystem Grows With Advanced Development Tools to Accelerate Vision AI

    Low Code and No Code Platforms for AI and Computer Vision

    Low Code and No Code Platforms for AI and Computer Vision

    Computer Vision Model Performance Evaluation (Guide 2023)

    Computer Vision Model Performance Evaluation (Guide 2023)

    PepsiCo Leads in AI-Powered Automation With KoiVision Platform

    PepsiCo Leads in AI-Powered Automation With KoiVision Platform

    USB3 & GigE Frame Grabbers for Machine Vision

    USB3 & GigE Frame Grabbers for Machine Vision

    Active Learning in Computer Vision - Complete 2023 Guide

    Active Learning in Computer Vision – Complete 2023 Guide

    Ensembling Neural Network Models With Tensorflow

    Ensembling Neural Network Models With Tensorflow

    Autoencoder in Computer Vision - Complete 2023 Guide

    Autoencoder in Computer Vision – Complete 2023 Guide

  • Robotics
    Keys to using ROS 2 & other frameworks for medical robots

    Keys to using ROS 2 & other frameworks for medical robots

    Watch Bill Gates take a ride in a Wayve AV

    Watch Bill Gates take a ride in a Wayve AV

    Researchers taught a quadruped to use its legs for manipulation

    Researchers taught a quadruped to use its legs for manipulation

    Times Microwave Systems launches coaxial cable for robotics

    Times Microwave Systems launches coaxial cable for robotics

    neubility robot on the sidewalk.

    Sidewalk delivery robot company Neubility secures $2.42M investment

    Gecko Robotics expands work with U.S. Navy

    Gecko Robotics expands work with U.S. Navy

    German robotics industry to grow 9% in 2023

    German robotics industry to grow 9% in 2023

    head shot of larry sweet.

    ARM Institute hires Larry Sweet as Director of Engineering

    Destaco launches end-of-arm tooling line for cobots

    Destaco launches end-of-arm tooling line for cobots

  • RPA
    What is IT Process Automation? Use Cases, Benefits, and Challenges in 2023

    What is IT Process Automation? Use Cases, Benefits, and Challenges in 2023

    Benefits of Automated Claims Processing in Insurance Industry

    Benefits of Automated Claims Processing in Insurance Industry

    ChatGPT and RPA Join Force to Create a New Tech-Revolution

    ChatGPT and RPA Join Force to Create a New Tech-Revolution

    How does RPA in Accounts Payable Enhance Data Accuracy?

    How does RPA in Accounts Payable Enhance Data Accuracy?

    10 Best Use Cases to Automate using RPA in 2023

    10 Best Use Cases to Automate using RPA in 2023

    How will RPA Improve the Employee Onboarding Process?

    How will RPA Improve the Employee Onboarding Process?

    Key 2023 Banking Automation Trends / Blogs / Perficient

    Key 2023 Banking Automation Trends / Blogs / Perficient

    AI-Driven Omnichannel is the Future of Insurance Industry

    AI-Driven Omnichannel is the Future of Insurance Industry

    Avoid Patient Queues with Automated Query Resolution

    Avoid Patient Queues with Automated Query Resolution

  • Gaming
    God of War Ragnarok had a banner debut week at UK retail

    God of War Ragnarok had a banner debut week at UK retail

    A Little To The Left Review (Switch eShop)

    A Little To The Left Review (Switch eShop)

    Horizon Call of the Mountain will release alongside PlayStation VR2 in February

    Horizon Call of the Mountain will release alongside PlayStation VR2 in February

    Sonic Frontiers has Dreamcast-era jank and pop-in galore - but I can't stop playing it

    Sonic Frontiers has Dreamcast-era jank and pop-in galore – but I can’t stop playing it

    Incredible November Xbox Game Pass addition makes all other games obsolete

    Incredible November Xbox Game Pass addition makes all other games obsolete

    Free Monster Hunter DLC For Sonic Frontiers Now Available On Switch

    Free Monster Hunter DLC For Sonic Frontiers Now Available On Switch

    Somerville review: the most beautiful game I’ve ever played

    Somerville review: the most beautiful game I’ve ever played

    Microsoft Flight Sim boss confirms more crossover content like Halo's Pelican and Top Gun Maverick

    Microsoft Flight Sim boss confirms more crossover content like Halo’s Pelican and Top Gun Maverick

    The Game Awards nominations are in, with God of War Ragnarok up for 10 of them

    The Game Awards nominations are in, with God of War Ragnarok up for 10 of them

  • Investment
    Wellth

    Wellth Raises $20M in Series B Funding

    Travelport

    Travelport Receives $200M Investment

    Pulse Industrial

    Pulse Industrial Raises New Funding Round

    Horizon Quantum Computing

    Horizon Quantum Computing Raises USD 18.1M in Series A Funding

    PxE Holographic Imaging Raises $5.4M in Seed Funding

    PxE Holographic Imaging Raises $5.4M in Seed Funding

    Ledger

    Ledger Closes €100M Series C Extension Round

    personal finance

    3 Reliable Ways to Generate Some Income for Investment

    trading

    Index Futures Trading Receives First Ever Crypto Market Deployment on Bitget Exchange

    BioCorteX

    BioCorteX Raises $5M in Seed Funding

  • More
    • Data analytics
    • Apps
    • No Code
    • Cloud
    • Quantum Computing
    • Security
    • AR & VR
    • Esports
    • IOT
    • Smart Home
    • Smart City
    • Crypto Currency
    • Blockchain
    • Reviews
    • Video
No Result
View All Result
AI EXPRESS - Hot Deal 4 VCs instabooks.co
No Result
View All Result
Home Blockchain

Guidelines for Auditing Staking Protocols

by
March 15, 2023
in Blockchain
0
Guidelines for auditing staking protocols
0
SHARES
2
VIEWS
Share on FacebookShare on Twitter
Learn Time: 6 minutes

On this weblog, we have now outlined the idea of liquidity staking protocols and auditing pointers for staking protocols. The rules cowl a spread of susceptible spots equivalent to withdrawal mechanisms, rounding errors, exterior calls, payment logic, loops, structs, staking period, and many others. This weblog submit might be a helpful reference for auditing staking protocols and may help you establish potential bugs.

What’s Liquidity Staking?

Liquidity staking permits customers to stake their cryptocurrency holdings and earn rewards with out sacrificing liquidity. As an alternative of locking up their cash for a hard and fast interval, customers can obtain a liquid token that represents their staked property. This token will be traded or used like every other cryptocurrency, permitting customers to make use of their property as they please whereas nonetheless incomes staking rewards.

For instance, you may have 100 ETH you need to stake on the Ethereum community. As an alternative of locking up your ETH for a hard and fast interval, you should use a liquidity staking service like Lido to stake your ETH and obtain a liquid token referred to as stETH in return. With stETH, you possibly can nonetheless commerce or use your staked ETH whereas incomes staking rewards.

Let’s get began with auditing staking contracts:

Look at the entire audit specs out there earlier than starting with the contract code. It might be within the type of a white paper, README information, or one thing else. These will provide you with an concept of what the contract code will include.

When wanting on the audit specification doc for the staking contract, search for these factors:

  • Varieties of Charges based mostly and their calculations.
  • Rewards mechanism for staked tokens
  • Powers of the proprietor
  • Will the contract maintain ETH?
  • What tokens the contract will maintain?
  • Authentic contract from which it’s forked

Verify that the specs match the code. Start with charges and tokenomics, adopted by validation of the proprietor’s authority. Verify that each one rewards and payment values are in accordance with the documentation.

Weak spots to search for?

1. Reward Withdraw Mechanism:

Verify that the staked token rewards mechanism is appropriately carried out and that rewards are distributed pretty and proportionally to all stakers. Initiatives can distribute rewards in two methods: both routinely, on a periodic foundation, or upon request by the customers themselves. A withdrawal operate will be carried out and customised in response to the protocol’s enterprise logic.
Under are a number of checkpoints:

  • Verify if any consumer is ready to withdraw greater than its reward + staked quantity.
  • Verify for Overflow/underflow within the quantity calculation
  • Verify if sure parameters can have a unfavourable influence on rewards throughout calculation.
  • If block.timestamp or block.quantity is used on this operate. Verify if it may be exploited in any means.
See also  Understanding Spoof Tokens and How to Avoid Being Coaxed

2. Payment Logic:

If the deposit and withdrawal are topic to some payment, then confirm that no single consumer can bypass the payment. Moreover, be vigilant for any potential overflow or underflow points. Solely the administrator or proprietor must be licensed to change payment settings. Additionally confirm {that a} threshold for optimum charges has been established, stopping the administrator from setting it at an excessively excessive quantity.

3. LP Token’s Minting/Burning Mechanism:

Confirm if the minting and burning mechanisms have been appropriately carried out. A burn operate ought to reverse all state adjustments made by a mint operate. Moreover, it’s essential to confirm that customers obtain the suitable quantity of tokens in the course of the first stake, when the pool is empty.

The logic of minting and burning features will be mathematically verified to uncover any hidden vulnerability. Additionally, the entire provide of LP tokens minted shouldn’t exceed the staked property.

4. Rounding Errors:

Despite the fact that sure minor rounding errors are usually unavoidable and never a priority, they will develop considerably when it’s doable to multiply them. Search for edge circumstances the place one can revenue from rounding errors by repeatedly staking and unstaking.

To find out whether or not rounding errors can accrue to a considerable quantity over an prolonged time frame, we will mathematically calculate the vary of doable rounding errors.

5. Staking Period:

Be sure that the staking period calculations within the contract align with the required enterprise logic. Confirm that customers can’t redeem rewards earlier than the staking period has ended by bypassing the period checks. Additionally, Verify if the period of staking will be exploited by an attacker to get extra rewards.

6. Exterior Calls and Token Dealing with:

Many of the exterior calls might be to the token contracts. So, we should decide what sorts of tokens the staking contract will deal with. It’s important to test exterior requires any errors and reentrancy assaults. Deflationary tokens or tokens with switch charges, equivalent to Safemoon, can pose an issue if their logic will not be appropriately carried out.

7. Value Manipulations Checks:

Value Manipulation through a flash mortgage is One of the vital frequent hacks on DeFi tasks. There could also be conditions the place malicious actors can use flash loans to control costs throughout staking or unstaking great amount of tokens. Fastidiously evaluation staking and unstaking features to keep away from edge-case situations that would lead to flash loan-based worth manipulation assaults and lack of different customers’ funds.

8. Some Further Checks:

  • Loops: If the contract logic entails looping over arrays, it’s vital to make sure that the block gasoline restrict will not be exceeded. This could happen when the array dimension may be very giant, so you need to examine what features might enhance the scale of the array and whether or not any consumer might exploit it to trigger a DoS assault. Take a look at this report.
  • Structs: Staking contracts use the struct sort to retailer consumer or pool knowledge. When declaring or accessing a struct inside a operate, it’s vital to specify whether or not to make use of “reminiscence” or “storage.” It would assist us avoid wasting gasoline. For extra info, please refer to this article.
  • Entrance-Working: Search for any situations the place malicious actors might front-run any transaction to their benefit.
  • Operate Visibility/ Entry Management Checks: Any operate that’s declared as exterior or public will be accessed by anybody. Subsequently, it is very important be sure that no public operate can carry out any delicate actions. It’s essential to confirm that the staking protocol has carried out acceptable controls to stop unauthorized entry to each the staked cash and the system’s infrastructure.
  • Centralization Dangers: It can be crucial to not give the proprietor extreme powers. If the admin deal with is compromised, it might trigger important harm to the protocol. Confirm that the proprietor or admin privileges are acceptable and be sure that the protocol has a plan in place for dealing with conditions the place an admin’s personal keys are leaked.
  • ETH / WETH dealing with: Contracts typically embody particular logic for dealing with ETH. For instance, when msg.worth > 0, a contract might convert ETH to WETH whereas nonetheless permitting WETH to be acquired straight. When a consumer specifies WETH because the foreign money however sends ETH with the decision, this may break sure invariants and result in incorrect habits.
See also  Web3 Security for Enterprise: Web3 powered Enterprises (Part-1)

Thus far, we have now mentioned liquidity staking protocols and the auditing pointers for such protocols. In a nutshell, Liquidity staking permits customers to earn staking rewards with out sacrificing liquidity. We now have outlined the susceptible spots in staking contracts that auditors should take note of, equivalent to withdrawal mechanisms, payment logic, LP token minting/burning mechanism, rounding errors, staking period, exterior calls, and worth manipulation checks. 

We advocate auditors to look at audit specs paperwork, match specs with code, and test charges and tokenomics validation. We additionally advocate extra checks equivalent to looping over arrays, specifying reminiscence or storage for struct sort knowledge, and front-running situations. These pointers might be helpful for auditing staking protocols and assist establish potential bugs.


11 Views

Source link

Tags: AuditingguidelinesProtocolsstaking
Previous Post

Clever Care Health Plan Closes $42M Series C Financing

Next Post

Raines Acquires HP Hotels

Next Post
Raines Acquires HP Hotels

Raines Acquires HP Hotels

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Newsletter

Popular Stories

  • Wordle on New York Times

    Today’s Wordle marks the start of a new era for the game – here’s why

    0 shares
    Share 0 Tweet 0
  • iOS 16.4 is rolling out now – here are 7 ways it’ll boost your iPhone

    0 shares
    Share 0 Tweet 0
  • Increasing your daily magnesium intake prevents dementia

    0 shares
    Share 0 Tweet 0
  • Beginner’s Guide for Streaming TV

    0 shares
    Share 0 Tweet 0
  • Twitter’s blue-check doomsday date is set and it’s no April Fool’s joke

    0 shares
    Share 0 Tweet 0

Blockchain Jobs

View 115 Blockchain Jobs at Tesla

View 165 Blockchain Jobs at Nvidia

View 105 Blockchain Jobs at Google

View 135 Blockchain Jobs at Amamzon

View 131 Blockchain Jobs at IBM

View 95 Blockchain Jobs at Microsoft

View 205 Blockchain Jobs at Meta

View 192 Blockchain Jobs at Intel

Accounting and Finance Hub

Raised Seed, Series A, B, C Funding Round

Get a Free Insurance Quote

Try Our Accounting Service

AI EXPRESS – Hot Deal 4 VCs instabooks.co

AI EXPRESS is a news site that covers the latest developments in Artificial Intelligence, Data Analytics, ML & DL, Algorithms, RPA, NLP, Robotics, Smart Homes & Cities, Cloud & Quantum Computing, AR & VR and Blockchains

Categories

  • AI
  • Ai videos
  • Apps
  • AR & VR
  • Blockchain
  • Cloud
  • Computer Vision
  • Crypto Currency
  • Data analytics
  • Esports
  • Gaming
  • Gaming Videos
  • Investment
  • IOT
  • Iot Videos
  • Low Code No Code
  • Machine Learning
  • NLP
  • Quantum Computing
  • Robotics
  • Robotics Videos
  • RPA
  • Security
  • Smart City
  • Smart Home

Quick Links

  • Reviews
  • Deals
  • Best
  • AI Jobs
  • AI Events
  • AI Directory
  • Industries

© 2021 Aiexpress.io - All rights reserved.

  • Contact
  • Privacy Policy
  • Terms & Conditions

No Result
View All Result
  • AI
  • ML
  • NLP
  • Vision
  • Robotics
  • RPA
  • Gaming
  • Investment
  • More
    • Data analytics
    • Apps
    • No Code
    • Cloud
    • Quantum Computing
    • Security
    • AR & VR
    • Esports
    • IOT
    • Smart Home
    • Smart City
    • Crypto Currency
    • Blockchain
    • Reviews
    • Video

© 2021 Aiexpress.io - All rights reserved.