Tag: solidity

  • How to calculate APY for Compound V3 Rewards

    How to calculate APY for Compound V3 Rewards

    Introduction Annual Percentage Yield (APY) is a critical metric for evaluating the returns on investments in DeFi protocols. In Compound V3, calculating the APY for COMP rewards involves understanding the reward rates and their impact on supply and borrow activities. If you want to understand how the rewards system works for Compound V3, please checkout…

  • Compound V3 Rewards explained

    Compound V3 Rewards explained

    Introduction In decentralized finance (DeFi), incentives play a crucial role in driving user participation. Compound, one of the leading DeFi protocols, utilizes COMP token rewards to encourage both lending and borrowing activities. This post delves into how the Compound V3 rewards system works, comparing it with the MasterChef algorithm from yield farming protocols, and providing…

  • Solidity’s try-catch Syntax: Best Practices for Error Handling with Examples

    Solidity’s try-catch Syntax: Best Practices for Error Handling with Examples

    Introduction When making smart contracts on the Ethereum blockchain, handling errors can be a very important part of the process. Especially when there aren’t many tools available! Solidity v0.6.0’s addition of the try/catch syntax was a big step in the right direction for how errors are handled. These new features build on previous ones, like…

  • Solidity Events: Everything You Need to Know

    Solidity Events: Everything You Need to Know

    Introduction Hello, Web3 folks! If you’ve worked with Solidity before, you know that it’s a powerful language for building decentralised applications on the Ethereum blockchain. But have you ever thought about how smart contracts can talk to things outside of the blockchain? This is where Solidity events come in! Solidity events are an important part…

  • Things You Need to Know About Solidity Libraries

    Things You Need to Know About Solidity Libraries

    Introduction Are you a Solidity developer looking to make your smart contract development process smoother and more efficient? Then boy, do we have the perfect solution for you! Libraries in Solidity are like the awesome sidekick you never knew you needed – they provide powerful tools to simplify and turbocharge your development process. This article…

  • Everything you need to know about Solidity fallback functions

    Everything you need to know about Solidity fallback functions

    Introduction Smart contract functions are the building blocks of smart contracts, which are blockchain-based autonomous programmes. A smart contract function might be configured to operate when a given quantity of currency is received or when a specific contract condition is satisfied. Smart contract functionalities must typically be “externally” triggered. In other words, solidity and evm…