Agoric / dapp-inter

User application for Agoric Inter Protocol—Vaults, BLD Boost, Liquidations, etc.
2 stars 10 forks source link

feat: account for locked price in creation and adjustment #118

Closed samsiegart closed 1 year ago

samsiegart commented 1 year ago

fixes #100 fixes #101

Description

Makes the "max" button use the lowest of next liquidation/current quote price when creating and adjusting vaults, and enforces collat. ratio based on lowest price when creating a vault.

Shows next liquidation price during price lock period in creation and adjustment views:

image

Capture2

Testing

Tested manually throughout price lock periods on a local chain and added unit tests for new cases

github-actions[bot] commented 1 year ago

Network: Commit: e8f55e8eaf96b82f1b916b7f7ead712678b1d666 Ref: refs/heads/main IPFS v1 hash: bafybeih3ieyxyphvnbwsk7ahmgk232z3tndfbuxth7y5273shhgz5juore CF - DWeb - 4EVERLAND