simplify mars_outpost::red_bank exports#33
Conversation
dancreee
left a comment
There was a problem hiding this comment.
This looks like an improvement to me - however with anything somewhat subjective I think we should
a. determine if a refactor introduces any additional bug/exploit risk
b. have all core devs align on this as a coding standard and put it in the guidelines - with the goal to remove most subjective changes from day to day PR's
@piobab thoughts on this and adding it to the guidelines
"moves types defined in mod.rs to a separate types.rs file" - OK When it comes to re-exports, we have to remember: |
|
I don't have a strong opinion on this. Intelliji automatically finds/imports and it also hides imports by default in every file. So the way they look is almost irrelevant to my dev workflow. My only concern would be to not make the types.rs file a monolith if they could live closer to their usage. |
ahmadkaouk
left a comment
There was a problem hiding this comment.
For me, I like to have smaller import sections and shorter paths. But this personal preference.
grod220
left a comment
There was a problem hiding this comment.
I'll approve this (as I hate automatic PR approval dismissals lol)
ok the crowd has spoken, i'll remove this |
* integrate cw-set for allowed coins * review updates
* add swap fee * fmt * fix tsc * improve assert_swap_fee
currently the way the
mars_outpost::red_bankmodule works is, there are some stuff defined inmod.rs, some defined ininterest_rate_model.rs, some inmsg.rs, and i need to know where each thing is, and import them separately from each sub-module:this doesn't make sense to me... this PR:
mod.rsto a separatetypes.rsfile