SIP-94: Virtual Synth Fix to Ensure Settlement Is Connected
Author | |
---|---|
Discussions-To | https://research.synthetix.io |
Status | Implemented |
Created | 2020-11-12 |
Simple Summary
Ensure the Virtual Synth (vSynth) implementation (SIP-89) correctly tracks the virtual synth address for settlement
Abstract
Patch release the vSynth implementation to ensure the following:
- Major: Exchange settlement tracks the virtual synth not the
msg.sender
. - Minor: vSynths to use synth proxies not the underlying address
- Incidental: Adding
trackingCode
as final argument toexchangeWithVirtual
- Incidental: Minor changes to
VirtualSynthCreated
event signature
Motivation
- The vSynth release in Mimosa had a bug whereby the exchange settlement was using the
msg.sender
not the vSynth contractaddress
. This meant that settling the vSynth wasn't connected to the underlying synth settlement, and would require an additional settlement at the synth level - vSynths use underlying Synth addresses to transfer synths after settlement, however this is brittle when the protocol upgrades and disconnects the old underlying Synths. The solution is to use their proxies.
- Adding an optional tracking code helps include volume incentive when necessary
- Minor changes to include the
address recipient
of the vSynth supply.
Specification
Please see https://github.com/Synthetixio/synthetix/pull/881
Configurable Values (Via SCCP)
N/A
Copyright
Copyright and related rights waived via CC0.