Looking for a Solidity Smart Contract developer with experience using Assembly to fix a small issue

Search more jobs
Posted
Worldwide
I'm trying to optimize the gas cost for a swap smart contract. The goal is to make a swap using assembly however the issue is that it doesn't work. The code is from this repository:

https://github.com/libevm/subway/blob/master/contracts/src/Sandwich.sol

If you try running the code on remix it won't execute properly. I'm trying to figure out how the transfer and swap functions are done in assembly as you can see in lines 86 and lines 119.

I'm looking for someone to explain how they work and fix it. the calldata you must use to execute the fallback() function is this:

0x892db5aaa81a35a0bff89ffbae83d121e6cb989dcb34011dd5262e86edfa0aaa97ac284470549c54000000000000000006f05b59d3b20000000000000000000012b2146f19bd8ca400

The smart contract will then extract the different parameters from it using assembly. Check it out and let me know.

Remember the goal is to understand how the lines 86 and 119 work so I can optimize them properly and fix it. The contract is simply executing a simple swap() from uniswap v2 contracts.
  • Less than 30 hrs/week
    Hourly
  • < 1 month
    Duration
  • Intermediate
    Experience Level
  • $10.00-$50.00
    Hourly
  • Remote Job
  • One-time project
    Project Type

Skills and Expertise

Blockchain & NFT Programming Languages
Solidity
Blockchain Platform
Ethereum Bitcoin
Other
Blockchain

Activity on this job

  • 20 to 50
    Proposals
    20 to 50
  • 6 days ago
    Last viewed by client
    6 days ago
  • 10
    Interviewing
    10
  • 0
    Invites sent
    0
  • 0
    Unanswered invites
    0

About the client

Member since Nov 28, 2021
  • Spain
    Madrid 3:45 pm
  • 29 jobs posted
    56% hire rate, 2 open jobs
  • $5.9K total spent
    29 hires, 2 active
  • $6.34 /hr avg hourly rate paid
    446 hours
  • Media & Entertainment
    Mid-sized company (10-99 people)
  • Member since Nov 28, 2021

Explore similar jobs on Upwork

NFT Developer
New
Fixed-price ‐ Posted 17 hours ago
NFT NFT Art NFT Design NFT Collection Generation Cryptocurrency Blockchain, NFT & Cryptocurrency Ethereum Bitcoin
NFT enthusiast
New
Fixed-price ‐ Posted 18 hours ago
NFT NFT Design Cryptocurrency Blockchain, NFT & Cryptocurrency Metaverse Blockchain Ethereum Bitcoin

How it works

Post a job icon
Create your free profile

Highlight your skills and experience, show your portfolio, and set your ideal pay rate.

Talent comes to you icon
Work the way you want

Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.

Payment simplified icon
Get paid securely

From contract to payment, we help you work safely and get paid securely.

Want to get started?

About Upwork

Stars rating
4.9/5
(Average rating of clients by professionals)
G2 2021
#1 freelance platform
49,000+
Signed contract every week
$2.3B
Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by
Microsoft Logo Airbnb Logo Bissell Logo GoDaddy Logo