Scaling UMA
This section explains the how UMA is scaling to the Polygon network. Polygon is the first scaling solution enabled with more to follow soon.
#
How scaling UMA works on PolygonThe UMA ecosystem comprises a dispute resolution layer — the Data Verification Mechanism (DVM), and the financial contracts it secures. UMA’s architecture has from conception been decoupled, meaning the dispute layer and the contract layer do not need to live on the same chain.
Having a decoupled architecture gives the advantage of being able to deploy to any EVM chain efficiently. Our scaling strategy allows the contract layer on Polygon or any EVM scaling solution to access the same DVM any contract native to Ethereum has access to.
UMA makes use of an arbitrary message bridge that allows for two-way messages to pass between the Polygon network and Ethereum mainet. The message bridge uses the Polygon Arbitrary Message system, meaning it can be as trusted as the Polygon network itself.
UMA's Optimistic Oracle is used as the arbiter of price requests natively on the Polygon network. A request will ask the Polygon Optimitic Oracle. If the proposal goes undisputed, then the result is deemed the accepted outcome.
If the event is disputed, then the following steps will be taken to bridge the disputed result back to the final arbitator, the DVM:
- A Polygon contract, such as a prediction market, needs a price to settle a payout. The contract expects to get this price from an optimistic oracle
Polygon Oracle
. - For some reason, a user disagrees with the price returned by the
Polygon Oracle
and disputes the price. - The disputed price request is passed from the Polygon Oracle to a contract called the
Oracle Child Tunnel
, whose sole responsibility is to communicate with anOracle Root Tunnel
on the Ethereum network. - The
Oracle Child Tunnel
relays the dispute to Ethereum mainnet to theOracle Root Tunnel
. - The
Oracle Root Tunnel
has special permission to request a price from the DVM, where the familiar voting and resolution process is performed by UMA voting token holders. Once the DVM has resolved a price request, the outcome of the vote is pushed toOracle Root Tunnel
. It is important to note that the DVM is not aware of which chain the request came from, nor does it need to. - Like before, the
Oracle Root Tunnel
relays the result from the DVM to theChild Tunnel
on Polygon. - Finally, the
Oracle Child Tunnel
then sends a message back to thePolygon Oracle
. - The outcome of the dispute is resolved and Polygon based contracts can now used the resolved price.
#
ResourcesFor more information on how to laucnh a contract to Polygon, you can follow the tutorial.
If you want to know more about how to UMA plans to scale to more scaling solutions you can read out article.