butaneprotocol / blaze-cardano

🔥 The hottest transaction building library for Cardano
https://blaze.butane.dev
Apache License 2.0
58 stars 22 forks source link

Fix correct collateral percentage calculation and add initial support for PlutusV3 script #172

Closed ilap closed 2 months ago

ilap commented 2 months ago

This pull request corrects the collateral percentage calculation.

The collateral percentage was previously defined as a rational number (e.g. 150/100), but it should be defined as a natural number (e.g. 150) to be consistent with the genesis configs.
This change ensures consistency in the collateral percentage, correct calculation, and avoids the issue of collateral being 100 times larger than expected in Kupmios povider.

Additionally, this pull request adds initial support for PlutusV3 scripts in the blaze-uplc package. This initial support may require additional commits to fully implement the feature.

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: bf49afdc8cf699eb9cd56e08af29b643723216dc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR