makerdao / univ2-lp-oracle

GNU Affero General Public License v3.0
23 stars 13 forks source link

OSM memory slot parity #17

Closed brianmcmichael closed 3 years ago

brianmcmichael commented 3 years ago

Refactors the LP oracle to memory slot parity with the OSMs

Puts cur in slot 0x3 and nxt in slot 0x4, and moves other variables to match as well.

Other projects like zapper and defisaver are using the slot locations to read prices for UI's, this provides a familiar data mapping.

kmbarry1 commented 3 years ago

Make sure to give the Vulcanize folks a heads-up about this one, they do a lot of stuff that relies directly on storage slots.