Skip to content
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

Integrated Vesu.xyz protocol #97

Closed
wants to merge 8 commits into from
Closed

Integrated Vesu.xyz protocol #97

wants to merge 8 commits into from

Conversation

Ugo-X
Copy link
Contributor

@Ugo-X Ugo-X commented Aug 22, 2024

PR Fixes:

  • 1 Integrated the vesu.xyz pools
    Here is what it looks like
Screenshot 2024-08-22 at 13 23 43

Resolves #79

Vercel website link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue
  • My PR passes all checks (build, lint, formatting, etc)

Copy link

gitguardian bot commented Aug 28, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
10294468 Triggered Generic High Entropy Secret 217659a src/app/slinks/template.tsx View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

const getUtilisation = async (poolId: string, tokenAddress: string) => {
const contract = new Contract(
VesuAbi,
'0x02545b2e5d519fc230e9cd781046d3a64e092114f07e44771e0d719d148725ef',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a constant variable with appropriate name for this contract address and use this variables instead of hardcoding

'2198503327643286920898110335698706244522220458610657370981979460625005526824',
tokenAddress:
'0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7',
rewardApr: '0.09',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u hardcoded rewardAPR. wrong.

'0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d',
rewardApr: '0.13',
baseApr: '0',
tvl: '2000000',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TVL also hardcoded. Wrong.

},
],
category,
type: PoolType.DEXV2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PoolType is Lending.

description: '',
},
],
category,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Category is not stable for all pools

export class Vesu extends Jediswap {
name = 'Vesu';
link = 'https://www.vesu.xyz/markets';
logo =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect url. i will provide correct one.

@akiraonstarknet akiraonstarknet mentioned this pull request Sep 23, 2024
@akiraonstarknet
Copy link
Contributor

Closed in favour of #142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: Integrate vesu.xyz
2 participants