New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRM labs integration #923
TRM labs integration #923
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #923 +/- ##
==========================================
+ Coverage 62.55% 62.60% +0.04%
==========================================
Files 225 226 +1
Lines 6927 6936 +9
Branches 1651 1651
==========================================
+ Hits 4333 4342 +9
- Misses 2233 2234 +1
+ Partials 361 360 -1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this feature be controlled by flag in features ?
Changed my mind, this would be serious security vulnerability |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/oazo-test/oasis-borrow-test/81qXHMpyBtYb6hs72gwjNnkef6gg [Deployment for fdea680 failed] |
# Conflicts: # yarn.lock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and works
@@ -12,24 +13,40 @@ export type JWToken = string | |||
|
|||
export function jwtAuthGetToken(address: string): JWToken | undefined { | |||
const token = localStorage.getItem(`token-b/${address}`) | |||
if (token && token !== 'xxx') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is magic 'xxx' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test what happens if user override locally token to xxx
children: ReactNode | ||
} | ||
|
||
export function WithWalletAssociatedRisk({ children }: WithWalletAssociatedRiskProps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this control is used multiple times instead of being used on the top once in _app.tsx?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to dependency on ToS flow
error?: string | ||
} | ||
|
||
export function getWalletRisk$(token: string, chainId: number): Observable<WalletRiskResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why it is not wallet address dependent ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address is decoded from token
# Conflicts: # pages/owner/[address]/index.tsx
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@adamskrodzki @paszkowskiDamian @piekczyk why are you doing this? Do you live in the U.S.? Bootlicking did not help Tornado. They had compliance section and still got banned. So what's the purpose? |
TRM labs integration
Changes 👷♀️
How to test 🧪
isRisky: false
Definition of done ✔️