Solidity contract to charge a % fee from the transaction value

Ditutup Disiarkan 2 bulan lepas Dibayar semasa penghantaran
Ditutup Dibayar semasa penghantaran

I'm currently working on a web3 automation software which can be used to automate NFT mints, token swaps and any kind of Ethereum transaction.

Instead of charging our users a monthly price, we want to charge our users based on a transaction fee.

Each time a user uses our software to send a transaction they will be charged a % of the total value if the transaction is successful.

We want a solidity contract which has a method that takes as parameters the target contract to call and the input data which will include the encoded method data to call from the target contract, this way, our custom contract will call the external contract with the provided data, check if the call is successful, and take a % of the total value and send it to our vault.

Keep in mind the transaction sent from our software will be sent with the necessary value for the external contract call + the % fee, so the call to the external contract must be done with the correct value ([login to view URL] - fee).

We have tried using delegatecall so the nft minted is sent to the user which sent the transaction and not our contract, while taking the fee before making the call, but the delegatecall is still being done with the [login to view URL] which includes the fee and it fails as it missmatches the input data which has an enconded value of [login to view URL] - fee.

We dont really know if it's possible to achieve this on a same transaction and contract call but it would be the most optimal thing to do.

Example: Lets say a user wants to mint an NFT which costs 1ETH, our software will send a transaction to our custom contract with the NFT contract address, the mint method data and a value of 1.001 ETH (1ETH + 1%). then the contract should extract the 1% and send it to our vault while making the call with the remaining value.

As said before we dont know if this is possible and it doesn't have to be done this way, we are open to other methods but we would like to keep it low level via contracts and 1 transaction only.

Requirements:

- Experience in Solidity and smart contract development on the Ethereum platform

- Familiarity with blockchain concepts and Ethereum ecosystem

Timeline:

- The project should be completed within a week.

Solidity Ethereum

ID Projek: #37228565

Tentang projek

17 cadangan Projek jarak jauh Aktif 1 bulan lepas

17 pekerja bebas membida secara purata €424 untuk pekerjaan ini

MauriceDev777

Hola! I'm interested in assisting you with the development of a Solidity contract that facilitates charging transaction fees based on the total value of Ethereum transactions. Your project is intriguing, and I'm eager Lagi

€300 EUR dalam 7 hari
(2 Ulasan)
3.2
codeman01

Hello, I understand from your description that you are looking for a solidity contract which can charge a % fee from the transaction value. Instead of charging your users a monthly price, you would like to charge them Lagi

€200 EUR dalam 7 hari
(2 Ulasan)
2.4
WebExpressX

Hello there My name is Elian Rodriguez, I am a verified freelancer. I have vast experience in web development and blockchain development, I have programmed and developed more than 25 projects internationally, I also Lagi

€300 EUR dalam 7 hari
(1 Ulasan)
0.6
rashidamjad

Hi there, I am thrilled to express my interest in your Solidity contract to charge a % fee from the transaction value project. Leveraging a rich background spanning 4-5 years in Solidity and Ethereum, I am well-equipp Lagi

€225 EUR dalam 27 hari
(0 Ulasan)
0.0
UmairAnwar93

Hi After reading in detail the requirements of your project and concluding that they match my areas of knowledge and skills, I would like to introduce myself. My name is Umair Anwar and I am the lead engineer for Eth Lagi

€225 EUR dalam 25 hari
(0 Ulasan)
0.0
IdeaCentre

Hi! I have read all the provided instructions, and I am the right person to work on this task, I wanted to reach out and see whether the opportunity is still available. As you can see from previous clients I deliver Lagi

€200 EUR dalam 7 hari
(0 Ulasan)
0.0
ranjithjupaka6

Hello, I am a full stack blockchain developer with required skills for this project and I would like to work on this and deliver you quality product.I am good proficiency with solidity and smart contracts and I have wo Lagi

€200 EUR dalam 7 hari
(0 Ulasan)
0.0
zhenlan1222

Hello, my name is Lan and I am a software developer with over 30 years of experience in programming and working with computers. I understand that you are looking for someone to develop a solidity contract that can char Lagi

€200 EUR dalam 7 hari
(0 Ulasan)
0.0
alican223

Hi, I am working as a Solidity developer since 2021 and I have strong knowledge about what you need in your project. I would like to discuss more about your needs and work together. Thanks.

€150 EUR dalam 7 hari
(0 Ulasan)
0.0
nomo5954

We are confident that we can complete it perfectly in the shortest time among all, please feel free to contact us.

€300 EUR dalam 7 hari
(0 Ulasan)
0.0