bancorprotocol / webapp-v3

Bancor V3 dApp
https://app.bancor.network
MIT License
19 stars 23 forks source link

Vote page - add support for BNT stake/unstake #748

Closed ashachaf closed 1 year ago

ashachaf commented 1 year ago

Following the DAO decision, we are adding support for BNT as government token. This means that we should allow same functionality as vBNT on the vote page.

NOTE: there would be a new stake contract for BNT. BNT stake contract Mockup: https://www.figma.com/file/fwADI9wqDrRAdlMX8EddCw/Bancor-v3?type=design&node-id=17809-1647&mode=design&t=AwzvP03Nzo04dW3n-4 https://www.figma.com/file/fwADI9wqDrRAdlMX8EddCw/Bancor-v3?type=design&node-id=17809-1826&mode=design&t=AwzvP03Nzo04dW3n-4

Requirements

Duplicate the exact same process implemented for vBNT balance fetch from wallet, balance fetch from contract, stake and unstake functions and apply them to the new BNT stake contract