Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

feat(solace): update solace finance integration #778

Merged
merged 6 commits into from
Jun 30, 2022

Conversation

leonardishere
Copy link
Contributor

Description

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is:
  • (optional) As a contributor, my Twitter handle is:

How to test?

Solace Portfolio Insurance V3

http://localhost:5001/apps/solace/positions?groupIds[]=policies&network=ethereum
http://localhost:5001/apps/solace/balances?addresses[]=0xfb5cAAe76af8D3CE730f3D62c6442744853d43Ef&network=ethereum

http://localhost:5001/apps/solace/positions?groupIds[]=policies&network=aurora
no active holders

http://localhost:5001/apps/solace/positions?groupIds[]=policies&network=polygon
http://localhost:5001/apps/solace/balances?addresses[]=0xF6DA0e773fa4095b8454E155A23446D8eBC068cF&network=polygon

http://localhost:5001/apps/solace/positions?groupIds[]=policies&network=fantom
http://localhost:5001/apps/solace/balances?addresses[]=0xa4C86a9706605611A6954A5F70fE9f8Afc5018ce&network=fantom

Aurora

http://localhost:5001/apps/solace/positions?groupIds[]=bonds&network=aurora
http://localhost:5001/apps/solace/balances?addresses[]=0x44286e05Ca69D97DB77A281B2B22bE2eB70e6EDC&network=aurora

http://localhost:5001/apps/solace/positions?groupIds[]=xslocker&network=aurora
http://localhost:5001/apps/solace/balances?addresses[]=0xa4C86a9706605611A6954A5F70fE9f8Afc5018ce&network=aurora

Fantom

http://localhost:5001/apps/solace/positions?groupIds[]=bonds&network=fantom
http://localhost:5001/apps/solace/balances?addresses[]=0xa4C86a9706605611A6954A5F70fE9f8Afc5018ce&network=fantom

http://localhost:5001/apps/solace/positions?groupIds[]=xslocker&network=fantom
http://localhost:5001/apps/solace/balances?addresses[]=0xf9af2e7927577d366291d8986dBD15daCEf676a6&network=fantom

@leonardishere leonardishere changed the title feat/solace2 feat(solace): update solace finance integration Jun 28, 2022
@wpoulin
Copy link
Contributor

wpoulin commented Jun 28, 2022

Hey,

I just want to double check you and your team are not confused with the recent code changes we applied to your app integration ?

Plus, I think the policies and xsLocker positions are counting towards TVL right ? if so, do you mind adding liquidity on the dataProps and displayProps. Also, don't forget to enable it to count towards TVL with the options: { includeInTvl: true } on the decorator.

@leonardishere
Copy link
Contributor Author

leonardishere commented Jun 28, 2022

I just want to double check you and your team are not confused with the recent code changes we applied to your app integration ?

Are you talking about this one? #692
I duplicated your logic for the new chains. Am I missing something?
Edit: it looks like you added some stuff to Ethereum and not Polygon, and I duplicated the Polygon logic to new chains. fixing

Plus, I think the policies and xsLocker positions are counting towards TVL right ? if so, do you mind adding liquidity on the dataProps and displayProps. Also, don't forget to enable it to count towards TVL with the options: { includeInTvl: true } on the decorator.

I didn't see that was an option, I just saw the TVL fetcher disappear and didn't know how it was still returning data. Will add

@wpoulin
Copy link
Contributor

wpoulin commented Jun 28, 2022

yes I'm taking about this PR. No, you did great ! I just wanted to make sure you saw the changes and were not lost/confused

Edit: it looks like you added some stuff to Ethereum and not Polygon, and I duplicated the Polygon logic to new chains. fixing

Yup, I totally forgot to add the logic on the Polygon implementation 😬

I didn't see that was an option, I just saw the TVL fetcher disappear and didn't know how it was still returning data. Will add

I know Tvl-Fetcher is kinda new, but things are moving quickly and we will be deprecating it pretty soon

@leonardishere
Copy link
Contributor Author

I just wanted to make sure you saw the changes and were not lost/confused

there was some initial confusion but nothing that couldn't be figured out. thanks for cleaning up our integration btw, I saw you deduplicated the helpers amongst other improvements

@@ -8,6 +8,9 @@ import { Network } from '~types/network.interface';
import { SolaceContractFactory } from '../contracts';
import { SOLACE_DEFINITION } from '../solace.definition';

const SOLACE_COVER_POINTS_ADDRESS = '0x501ace72166956f57b44dbbcc531a8e741449997';
const SOLACE_COVER_PRODUCT_ADDRESS = '0x501ACeB72d62C9875825b71d9f78a27780B5624d';
Copy link
Contributor

@wpoulin wpoulin Jun 30, 2022

Choose a reason for hiding this comment

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

Non blocking(nitpick): Can you lower case this address please

@wpoulin
Copy link
Contributor

wpoulin commented Jun 30, 2022

Good job ! Do you mind merging main in your branch so it's up to date, then it's a go to production

@immasandwich immasandwich merged commit 0bbdf46 into Zapper-fi:main Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants