trustline-inc / probity

A transparent asset-based lending protocol implemented for the EVM.
https://docs.trustline.co
Other
3 stars 1 forks source link

Upgrade: refactor states into separate contract #348

Open shine2lay opened 2 years ago

shine2lay commented 2 years ago

currently every contract has a version of states that it tracks internally, one possible improvement that we could make have a contract that holds states for different contracts similar to registry.

This would help with setting system wide states like "shutdown" and possibly system wide "system freeze" in the future.

mrosendin commented 2 years ago

Can call a single contract ("States" contract) and Probity will be in shutdown mode instead of calling 7 different contracts.