Skip to main content

2 posts tagged with "rust"

View All Tags

Calculating equillar commissions in the smart-contract

· 6 min read

When creating the equillar smart-contract, one of the most important decisions was how to structure commissions. Instead of applying a single fixed percentage, we have implemented a dynamic commission system that rewards larger investments with lower rates. This approach incentivizes significant capital contributions while maintaining a fair and accessible base rate for smaller investors.

Handling Smart Contract Errors in Equillar: From Rust to PHP

· 6 min read

Introduction

When building decentralized applications that interact with smart contracts, one of the most critical aspects is proper error handling. In Equillar, a PHP/Symfony-based platform for learning and prototyping blockchain solutions, we demonstrate an error handling strategy that bridges the gap between Rust smart contracts and a PHP backend application.

In this article, I'll explain how to manage contract errors end-to-end, from definition in Rust to user-friendly messages in PHP applications.

What you'll learn: How to implement a robust error handling system between smart contracts and web applications.