d8-x / d8x-trader-frontend-lite Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Can we combine all connected orders in 1 toast? Main, TP and SL?
Mobile & Desktop: On the top row fix the position of the quote currency, it jumps around when the price becomes single-digit. Also there might be a way to fix the digits.
Mobile & Desktop: Rename connect wallet to connect to "connect"
Mobile: Make sure the bg cant be moved so that the grey border appears to the right or left.
Mobile: The bg should be turned 180 degrees like in figma, so that blue is everywhere, right now the bottom part is just grey
Mobile: Add separator between Perpetual selector and start of price row like in figma
Mobile: make collateral/perpetual selector in white boxes like in figma
Mobile: check paddings, padding of white price boxes in mobile is for example not correct (should be padding: 12px 16px; but is 20px 24px). Check all other paddings please
Mobile: check gap, gap between elements in figma is 16px, should also be the same here
Mobile [Optional]: Should we put the buttons for stopp loss etc on two rows like in figma? I'm not sure, on my mobile the buttons on one row are just large enough to click.
Provide Modal window with "Lorum ipsum" text and one link for reuse and modification.
This Modal window should be open for the first time page is entered and modal is closed after.
On Close action, it should not be shown for other time when page is open.
Convert form relative shares to absolute rebates (from 33% 33% 33% to 20% 20% 20% if the total rebate is 60%)
--> ask caspar
Investigate if we can introduce gasless token approvals with Permit2: https://blog.uniswap.org/permit2-and-universal-router
The error from canceling a tx is not captured by .catch(async (error) => {
on line 268,
As a consequence the lock is never released and requestSentRef.current
and requestSent
remain true
Right now you can confirm an order collateralized in pragMatic, even if you have 0 pragMatic as collateral (see discord video)
--> we should a check that checks if the user has sufficient collateral in his wallet as an additional validity check
Input components in referral view should be aligned with input design in other components.
For this, ResponsiveInput
shall probably be used which also aligns the mobile view to show proper + / - action buttons.
Sort by submittedTimestamp, newest order on top
Research and decide on how to set up multi-language support.
Currently language is spread all across the code. To efficiently add multiple languages we need to centralize all language elements in one place (or one place per page).
Is i18n a solution? https://dev.to/franklin030601/building-a-multi-language-app-with-react-js-2och
The info text needs to address points including:
Tx fails for cancel orders:
cancelOrder tx hash: 0x6bd2b9d55b6b216100c9e00921efc1b568448954164457dfeadee69afcc19424
https://mumbai.polygonscan.com/tx/0x6bd2b9d55b6b216100c9e00921efc1b568448954164457dfeadee69afcc19424
cancelOrder tx hash: 0xdc5ccc44cd1e47679bcca387b9fa3cd5abc325316de87291cc99670fed7de8fe
https://mumbai.polygonscan.com/tx/0xdc5ccc44cd1e47679bcca387b9fa3cd5abc325316de87291cc99670fed7de8fe
add collateral:
0x619e271068787eeedcf4055f09badb5639542c24b00901c51a9259088b623061
remove collateral:
https://mumbai.polygonscan.com/tx/0xc59c7b97bcadfc581a16fcb1c75f714170dd9e01b3ece17f438d40a0af5bd439
Error message "Fail with error 'invalid updt'"
Right now we simply increase/decrease by 1
formatToCurrency needs to be updated. Currency cannot be hardcoded, this must be quote currency (it's not always USD), we can have ETH/BTC collateralized in MATIC
the position of currency should be stable for a given number of digits: if you have XXX.XX USD, the "USD" is always at the same position independently of what number X is. if the number changes to XXXX.XX USD, "USD" moves once.
Looks like even with 8 codes no pagination happens
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.