prisma-fi / prisma-contracts

A decentralized, non-custodial stablecoin backed by Ethereum liquid staking tokens
https://www.prismafinance.com/
MIT License
17 stars 16 forks source link

update weights prior to freezing #4

Closed owsley3 closed 1 year ago

owsley3 commented 1 year ago

Updates account and total weights prior executing the logic within freeze. This ensures weights are adjusted correctly, and avoids an issue where an account with an unlocked balance would be unable to lock (failing from underflow or OOG).

As repoted by Nomoi