Giter Site home page Giter Site logo

Comments (9)

LiamDormon avatar LiamDormon commented on September 12, 2024

All of the transactions are handled by the server so the UI won't update instantly but the server should be keeping check of the balance

from npwd_crypto.

JKellyEPCG avatar JKellyEPCG commented on September 12, 2024

No, he's right. I had a person discover if you have something like .0999999999 in crypto, and you sell .099999, he keeps getting $7.xxxxxxx over and over and over. He had 2 coins but couldn't sell 2 coins. So he did 1, then .5, and cut it in half until down to .09999 and ended up spamming that and making a little over $100k. You may have a problem where it's not rounding properly or something along those lines.

from npwd_crypto.

bruinp8n avatar bruinp8n commented on September 12, 2024

I'm not very familiar with typescript, so I cant really debug very well, but I also had another user sell crypto 6mil worth of crypto, it didn't update, and then allowed him to sell again, even though they no longer have crypto..

So there seems to be a slight syncing issue somewhere and possibly relies on the client for the amount?

from npwd_crypto.

LiamDormon avatar LiamDormon commented on September 12, 2024

Is this on ESX or QB?

const playerCryptos = fwWrapper.getCryptos(src)
if (playerCryptos <= amount) {
return res({
status: "error",
data: {
reason: "Insufficient Crypto Portfolio"
}
})
}
const worth = amount * controller.currentValue
fwWrapper.takeCryptos(src, amount)
fwWrapper.giveBank(src, worth)

All of the transaction is handled on the server here, the client serves only to relay messages between UI and Server, it knows nothing.

from npwd_crypto.

LiamDormon avatar LiamDormon commented on September 12, 2024

Best I can do is a rate limiter to prevent spam

from npwd_crypto.

JKellyEPCG avatar JKellyEPCG commented on September 12, 2024

It's qbcore for my experience. It never goes down for .099999999 if you keep selling it at .099999 but you'll make money each time. It was at $7.xxxx per sale

from npwd_crypto.

LiamDormon avatar LiamDormon commented on September 12, 2024

Rate limiting added to prevent spam exploits

from npwd_crypto.

JKellyEPCG avatar JKellyEPCG commented on September 12, 2024

Rate limiting added to prevent spam exploits

Thanks, I'll let you know if we experience any further problems on that end.

from npwd_crypto.

cmgjones avatar cmgjones commented on September 12, 2024

issue continues only when a 3rd decimal place is used , They just wait and click and again . Any way of limiting selling to whole numbers or 2 dp.

from npwd_crypto.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.