Fix some bugs in a solidity smart contract

Job ID: 37377416

Budget: $30 – $250 USD

I have a smart contract that has some bugs. I need a solidity developer to fix the bugs

This is the description of the smart contract:

1- it accepts the native token (e.g., Ether on Ethereum or Matic on Polygon, depends where we deploy it) from users so that they can transfer their native token directly via their wallet (e.g., Metamask) to the smart contract address and the smart accept it and add their contribution to a map (userwallet-> invest)
2- When it receives the tokens from the user, for example, Ether, it uses a chainlink oracle to fetch the price in USD. For instance, if the price of
Ether is 2000 USD; it fetches the price via its oracle, and then it transfers the same number (e.g., 2000 USD) in a specific token that is already stored in its treasury through a function called chargedtreasury.
That token is called "x token" which is a stablecoin. So users can also send the contract and can transfer some x tokens to the smart contract (treasury of the contract). So this is for whenever users send their native tokens, they will receive the same number of x tokens from the treasury of the contract.

For example, user A transfers one ether to this contract, the contract checks the price of Ether, then, based on that, checks its treasury, and then sends the same number of X tokens to the sender address. And record that in the map (address=> invested Ether)

3- there is a function called "FundManager" that allows the deployer to withdraw the funds (native tokens received from the user) and also the treasury from the smart contract to a given address.

Skills and Experience:
- Proficiency in solidity programming language
- Experience in identifying and fixing syntax errors, logic errors, and security vulnerabilities in smart contracts
- Knowledge of best practices for smart contract development and security
- Familiarity with blockchain technology and Ethereum platform

Cost 100 USD
Time 1 Day
Please read the description first and do not send me a general offer.
Related categories: Ethereum Solidity