-
Notifications
You must be signed in to change notification settings - Fork 17
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
Attestation improvements #2559
Attestation improvements #2559
Conversation
PR deployed in Google Cloud |
PR deployed in Google Cloud |
|
||
let signature: { hash: string; publicKey: string } | null = null | ||
try { | ||
const message = JSON.stringify(attestation) |
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.
It is now signing { portfolio: { ... } }
. It would be cleaner if it's just signing the inner part, so just { ... }
, and then it's combined into a new object that is
{
"portfolio": { ... },
"signature": { ... }
}
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.
I can make this change in the next few days though, don't worry about it :)
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.
Not blocking with change request, but needs one change. Otherwise, thanks for the awesome work so close before the holidays!
quantity: CurrencyBalance.fromFloat( | ||
l.pricing.outstandingQuantity.toDecimal(), | ||
pool.currency.decimals | ||
).toString(), |
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.
Is there a way to check how that rounds? ^^
centrifuge-app/src/pages/NavManagement/NavManagementAssetTable.tsx
Outdated
Show resolved
Hide resolved
….tsx Co-authored-by: Frederik Gartenmeister <[email protected]>
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.
LGTM!
Description
#2557
onchainReserve
in theassets
-section - TAKE from runtimeApiNav.reserve
assets
-section - currently, cash items are missingprice = -1
with right decimals, TAKE from runtimeApiNav.navFees
quantity
field to pool decimals - currently, it is 18 decimalsasset
structureasset
→assetId
-0
foronchainReserve
asset
→name
retrieved for the asset from ipfs data,onchainReserve
foronchainReserve
netFeeValue
chainId
- see json for detailstimestamp
when this was signed toportfolio
- unix timestamp in secondssignature
to be a struct containingsignature
andpublicKey
of signernetAssetValue
is correct - TAKE from runtimeApiNav.total
Approvals
Screenshots
Impact