Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Authorization Levels and Market Engine #15

Open
timthedevguy opened this issue Feb 24, 2019 · 0 comments
Open

Authorization Levels and Market Engine #15

timthedevguy opened this issue Feb 24, 2019 · 0 comments

Comments

@timthedevguy
Copy link
Owner

I have identified an issue with the current Authentication and Market system that is related to the Caching system in BuySYS.

The Authentication backend assigns different tax per member level, the Market system uses this information to determine the Tax, unfortunately the Cache is setup to save the adjusted price of whoever ran the cache update, generally the system which defaults to ROLE_MEMBER. So all prices are initially calculated and cached using the ROLE_MEMBER tax, and another ROLE never gets a different tax. This was done this way to save on DB calls, but I did not think this through.

I will be working on revamping the cache to store only the market price and having the adjusted price be calculated on each buyback estimate.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant