One thing I don’t understand here: where does the smart contract get the information of the current luna/usd exchange rate? It can’t be an api call surely, it must be on-chain somehow.
Do I understand this correctly: there's no inherent incentive to put the "correct" price, they just need to agree with each other. Essentially playing "Guess 2/3 of the average" but it's just "Guess the average".
Miners put the price (in dollars) in the blocks, and the medium price is taken as the price. You get penalized if the price you put in is 1 standard dev. or more off. You get 1% less of the block award you would get normally.
I know the thing is crashing and burning as we speak, but that seems like a crazy single point of failure for something claiming to be decentralized...