A nice feature would be to have an interface for this liquidation protection contract. If the mapping subscriptions is public, then we should use the methodology of morpho-blue where we can fetch structs directly. So this would mean that instead of doing
we could simply do assertEq(params, liquidationProtection(subscriptions(subscriptionId)));
(this example is taken from #3)
I can do the PR on top of #3 if we want to go for it
A nice feature would be to have an interface for this liquidation protection contract. If the mapping
subscriptions
is public, then we should use the methodology of morpho-blue where we can fetch structs directly. So this would mean that instead of doing we could simply doassertEq(params, liquidationProtection(subscriptions(subscriptionId)));
(this example is taken from #3) I can do the PR on top of #3 if we want to go for it_Originally posted by @QGarchery in https://github.com/morpho-org/morpho-liquidation-protection-poc/pull/1#discussion_r1741805961_