Skip to content

[VPD-1296]: Add vip and simulations for enabling dbo protection#717

Merged
fred-venus merged 5 commits into
mainfrom
vip/vpd-1296
Jun 9, 2026
Merged

[VPD-1296]: Add vip and simulations for enabling dbo protection#717
fred-venus merged 5 commits into
mainfrom
vip/vpd-1296

Conversation

@GitGuru7

@GitGuru7 GitGuru7 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Description

Resolves VPD-1296

Summary

VIP-630 [BNB Chain] — Enable bounded pricing on the remaining Core Pool assets (VIP 3 of 3)

Final step of the DeviationBoundedOracle (DBO) rollout on BNB Chain. Following VIP-617 (deploy + first asset TRX) and VIP-626 (next 8 assets), this VIP enables bounded pricing across every remaining Core Pool asset, bringing the total to 29 assets pricing through the DBO.

This VIP issues 16 transactions against the DeviationBoundedOracle (0xc79Cb7efEBd121DC4B39eA141C214606595D665A):

1. setTokenConfigs(...) — adds DBO configs for 5 markets never configured in VIP-617, enabling them in the same call:

Asset cooldownPeriod triggerThreshold resetThreshold boundedPricing caching
DAI 3600s (1h) 5% (5e16) 2% (2e16) enabled false
FDUSD 3600s (1h) 5% (5e16) 2% (2e16) enabled false
lisUSD 3600s (1h) 5% (5e16) 2% (2e16) enabled false
sUSDe 3600s (1h) 5% (5e16) 2% (2e16) enabled false
USDe 3600s (1h) 5% (5e16) 2% (2e16) enabled false

All 5 are stablecoins, so each uses a tight, flat triggerThreshold = 5% / resetThreshold = 2% rather than the CF-derived formula used for volatile assets. resetThreshold is strictly below triggerThreshold, as the DBO requires.

2. setAssetBoundedPricingEnabled(asset, true) ×15 — flips on the remaining already-configured assets:

asBNB, BNB, BTCB, CAKE, ETH, slisBNB, SOL, SolvBTC, vPT-clisBNB-25JUN2026, WBETH, WBNB, XAUM, XRP, xSolvBTC, XVS.

After execution, 20 assets transition to active bounded pricing (the 5 new + 15 enabled). Together with the 9 enabled earlier (TRX in VIP-617; AAVE, ADA, BCH, DOGE, LINK, LTC, TWT, UNI in VIP-626), this brings the total to 29 Core Pool assets pricing through the DBO's bounded (protected) price rather than the raw ResilientOracle spot.

On enable, each asset's rolling window re-seeds at the current spot price, so there is no stale-window risk. The DBO returns (spot, spot) until the keeper observes spot deviating beyond the asset's triggerThreshold, at which point collateral is valued at min(spot, windowMin) and debt at max(spot, windowMax).

Test

npx hardhat test simulations/vip-630/bscmainnet.ts --fork bscmainnet
# 110 passing

@GitGuru7 GitGuru7 marked this pull request as ready for review June 8, 2026 08:32
@GitGuru7 GitGuru7 changed the title [VPD-1296]: Add vip and simullations for enabling dbo protection [VPD-1296]: Add vip and simulations for enabling dbo protection Jun 8, 2026
@GitGuru7 GitGuru7 self-assigned this Jun 8, 2026
"isBoundedPricingEnabled": true,
"cachingEnabled": false
},
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has been sunset

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,121 @@
{
"newAssetConfigs": [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all those except fil are stablecoin, 16.7% just deesn't make sense, let's go with 5%

@fred-venus fred-venus Jun 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also i will suggest include usde and susde as well given that we've already added DAI, FDUSD and liUSD, imo they are at the same risk level

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"asset": "0x0782b6d8c4551B9760e74c0545a9bCD90bdc41E5",
"vToken": "0x689E0daB47Ab16bcae87Ec18491692BF621Dc6Ab",
"cooldownPeriod": 3600,
"triggerThreshold": "500000000000000000",

@fred-venus fred-venus Jun 8, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50% is way too large imo, 5% for all stablecoin as suggested

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fred-venus

Copy link
Copy Markdown
Contributor

@fred-venus fred-venus merged commit 1a0d1da into main Jun 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants