mrgnlabs / marginfi-v2

Apache License 2.0
158 stars 66 forks source link

program: Open flash loans to all users #182

Closed exdx closed 7 months ago

exdx commented 7 months ago

Removes the check on the FLASHLOAN_ENABLED_FLAG at the beginning of flashloan initialization. Instead, a check to see that the account is not disabled is done.

This enables any valid account to start a flashloan (removing the feature gate).