This gives us better compatibility with released anchor versions. Instead of using AccountLoaderDynamic<MangoAccount>, we now use a standard AccountLoader<MangoAccountFixed>. This will generally work (except for load_init(), which is dangerous). A new trait, MangoAccountLoader, provides load_full(), load_full_mut() etc on the AccountLoader<MangoAccountFixed> to create accessor structs that can read and write to the dynamic part of the mango account data. |
||
---|---|---|
.. | ||
liquidate.rs | ||
main.rs | ||
metrics.rs | ||
rebalance.rs | ||
snapshot_source.rs | ||
util.rs | ||
websocket_source.rs |