BlockheaderWeb3-Community / autoswappr-backend

Autoswappr backend
2 stars 5 forks source link

Implement Update Percentage Service #4

Open Abeeujah opened 3 days ago

Abeeujah commented 3 days ago

Overview

This service handles events emitted when a user updates the percentage for auto-swap from a specific token.

Payload

The service should handle incoming payloads with the following structure:

Functionality

Acceptance Criteria

Examples

Input Payload:

{
  "wallet_address": "0xUserAddress",
  "from_token": "STRK",
  "percentage": 75
}

Database Update:

Dependencies

0xdevcollins commented 3 days ago

May I take this issue on?

My Background I am a Full Stack Blockchain Developer with proficiency in Solidity/Rust, Next.js, TypeScript, React, and Node.js. I've demonstrated my ability to adjust to a variety of requirements, perform well under pressure, and reliably produce user-centric blockchain solutions with 46 significant contributions spread over 12 OnlyDust projects.

GideonBature commented 3 days ago

I'd love to work on this!

my name is Gideon Bature, a Software Engineer with experience working on Rust projects. If assigned this task, will send my first PR within 48 hours.

Thank you!

chigozzdevv commented 3 days ago

Hey, I understand the issue well. Please give me a chance to implement a callback for handling events emitted on percentage change.

Birdmannn commented 3 days ago

I al a good rust Dev. I can handle this

CEOliam commented 3 days ago

May I handle this issue?

Michaelkingsdev commented 3 days ago

I'd like to handle this task.

MrRoudyk commented 3 days ago

Can I take this from here?

Benjtalkshow commented 3 days ago

May I pick this up?

vestor-dev commented 3 days ago

I'd like to handle this task. @Abeeujah please kindly assign

Jagadeeshftw commented 3 days ago

Can I attempt this issue?

Ekene001 commented 3 days ago

I’d like to resolve this.

here's how i'll tackle this task:

To tackle this task, I will develop a service that processes events when a user updates their auto-swap percentage for a specific token. The service will receive payloads containing the wallet address, the token being updated, and the new percentage value. I will validate the incoming data to ensure it is complete and accurate. Then, I will update the swap_subscription_from_token table by matching the wallet address and token and setting the new percentage value. To ensure reliability, I will implement error handling for scenarios such as invalid tokens or database issues. After completing the implementation, I will thoroughly test the service to confirm it correctly updates the percentage and handles all edge cases, ensuring the system functions as expected.

mimisavage commented 3 days ago

I'd love to work on this!