Member-only story

🪙 699 Solidity LOC That May Be Worth Over 1.25 Trillion Dollars

Tom Smykowski
2 min readAug 11, 2023

--

A new PayPal stablecoin contract code may be very valuable in the future. It’s 699 lines long.

The title of the article is sensationalist but PYUSD, a stablecoin released by PayPal may become very important for the world’s payment systems.

PayPal in 2021 handled over 1.25 trillion dollars of payments, and may incorporate the stablecoin into the business now it got live.

Interestingly enought, due to the fact the new payment systems are partially open, we can read the contract of the PYUSD stablecoin.

The contact has 699 lines of code with comments. It doesn’t sound like a lot, but it shows how small can be contracts for new payments, even if it’s not all.

The code is written in Solidity, a language I’m writing from time to time, because it’s a goto language for contracts.

Here’s for example a function handling transfers:

It’s impressive how short a function to transfer money is if you think it may someday handle 1.25 trillion dollars per year.

It’s an interesting resource to learn Solidity and contracts.

Would you be willing to write a code of this level of responsibility? I’d have to go to yoga lessons more frequently for sure! 😅

Subscribe for more coding articles!

--

--

Tom Smykowski
Tom Smykowski

Written by Tom Smykowski

🚀 Senior/Lead Frontend Engineer | Angular · Vue.js · React | Design Systems, UI/UX | Looking for a new project! 📩 contact@tomasz-smykowski.com

No responses yet