Skip to content

Allow smart currency selection #67

@m3mayllon

Description

@m3mayllon

Description

Add a multiple select menu where the user can select from a pre-determined array of currencies to get their score calculated based on these choices. For more info, please follow the link: https://github.com/BalloonBox-Inc/SCRTSibyl_phase2#detailed-product-description-bulb-high_brightness-toolbox

Array of allowed currencies

[ "USD", "EUR", "BTC", "ETH", USDT", "USDC", "BNB", "XRP", "SCRT" ]

Dealing with the result

Send the selected currencies as an array of strings to the following endpoints through the key currencies:

  • /credit_score/plaid
  • /credit_score/coinbase
For example:

Add currencies to the constant body at line 81 in the case of plaid and line 31 in the case of coinbase.

const body = { currencies: ["USD", "BNB", "SCRT"], ... };

PS.: keplr_token: 'not-needed-yet' can be removed from body. The backend won't need it.

To do

  • create the multiple select menu frontend
  • catch the selected currencies
  • send currencies to the appropriate endpoints

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions