Narwallets / meta-pool

NEAR protocol Meta Staking Pool, tokenized stake, liquid unstake, stNEAR, $META
Other
43 stars 16 forks source link

META: ensure user|operator|treasury|developer are all DIFFERENT ACCOUNTS #6

Closed luciotato closed 3 years ago

luciotato commented 3 years ago

There's a point where all those accounts are read into memory, updated (sell, fees, etc) and then stored again. IF any one of those accounts is the same as another, the latest account to be stored will write-over other changes. Solution: Ensure user|operator|treasury|developer are all DIFFERENT ACCOUNTS