Mechanism

WePiggy’s price feed system is composed of multiple channels. According to different assets, the number of channels enabled and the priority order for each channel are different.

Basically, WePiggy will give priority to using Chainlink’s price feed. At the same time, we have set up a warning system. Once a failure of the ChainLink oracle is found, it will automatically switch channels according to the priority.

The warning system will also feed back abnormal situations to the risk control team of the core development team so that the risk control team can make timely judgments based on changes in the market environment to minimize the loss of user assets in extreme environments.

Oracle Settings for New Assets

More assets will be added into WePiggy’s lending market in the future.

For any new assets, WePiggy will give priority to using Chainlink’s price feed
For some emerging assets, since there is no price feed from Chainlink, use WePiggy’s self-developed oracle.

Address Details

The main price channels include: ChainLink, Compound and WePiggy oracles, etc.

Chainlink

Full name Abbreviation Deviation Threshold Address
DAI DAI 2% 0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9
USDC USDC 1USDC=1USD as default None
Tether USDT 1USDT=1USD as default None
Ethereum ETH 0.5% 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
Wrapped BTC WBTC 0.5% 0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c
Uniswap UNI 1% 0x553303d460EE0afB37EdFf9bE42922D8FF63220e
DFI.money YFII 1% 0xaaB2f6b45B28E962B3aCd1ee4fC88aEdDf557756
Loopring LRC 1% 0x160AC928A16C93eD4895C2De6f81ECcE9a7eB7b4
xTokenlon xLON 1% 0x13A8F2cC27ccC2761ca1b21d2F3E762445f201CE
RAI RAI 2% 0x4ad7B025127e89263242aB68F0f9c4E5C033B489

*WBTC is a kind of BTC-pegged token, we use BTC price instead.

Compound Price Oracle

Contract Name:UniswapAnchoredView
Address:0x922018674c12a7f0d394ebeef9b58f186cde13c1

WePiggy Price Oracle

Contract Name:WE_PIGGY_PRICE_ORACLE_V1
Address:0xE4A1E73157EB4b58b1347E2BE2df7ac83467b288

Other price feed channels

Under review…