Move fee_receiver address to the Reserve Config#23
Conversation
|
Tbh this is a pretty ugly change. Some parts of the code are pretty annoying. For example, Also I think we'll need to change some front end deserialization code since I changed where the fee receiver address lives to keep things logically grouped together. |
| let borrow_fee_wad = (borrow_fee * WAD as f64) as u64; | ||
| let flash_loan_fee_wad = (flash_loan_fee * WAD as f64) as u64; | ||
|
|
||
| let liquidity_fee_receiver_keypair = Keypair::new(); |
There was a problem hiding this comment.
this seems wrong shouldn't it be the thing you passed in?
There was a problem hiding this comment.
For adding a new reserve, we just make a new one, because we also just make the fee receiver account. in this command.
The thing passed in is for updating the reserve
Moves the fee receiver from the ReserveLiquidity struct to the ReserveConfig struct
so that it can be modified by the update-reserve-config command, and because it
makes more sense for it to be there.