Skip to content

Commit acf63d3

Browse files
committed
fix types
1 parent 6d669f4 commit acf63d3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

cadence/contracts/TidalProtocol.cdc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,10 @@ access(all) contract TidalProtocol {
358358
}
359359

360360
access(all) struct AdjustedBalances {
361-
access(all) let collateral: UFix64
362-
access(all) let debt: UFix64
361+
access(all) let collateral: UInt256
362+
access(all) let debt: UInt256
363363

364-
init (collateral: UFix64, debt: UFix64) {
364+
init (collateral: UInt256, debt: UInt256) {
365365
self.collateral = collateral
366366
self.debt = debt
367367
}
@@ -652,8 +652,8 @@ access(all) contract TidalProtocol {
652652
access(self) fun computeRequiredDepositForHealth(
653653
position: &InternalPosition,
654654
depositType: Type,
655-
effectiveCollateral: UFix64,
656-
effectiveDebt: UFix64,
655+
effectiveCollateral: UInt256,
656+
effectiveDebt: UInt256,
657657
targetHealth: UFix64
658658
): UFix64 {
659659
var effectiveCollateralAfterWithdrawal = effectiveCollateral
@@ -871,8 +871,8 @@ access(all) contract TidalProtocol {
871871
access(self) fun computeAvailableWithdrawal(
872872
position: &InternalPosition,
873873
withdrawType: Type,
874-
effectiveCollateral: UFix64,
875-
effectiveDebt: UFix64,
874+
effectiveCollateral: UInt256,
875+
effectiveDebt: UInt256,
876876
targetHealth: UFix64
877877
): UFix64 {
878878
var effectiveCollateralAfterDeposit = effectiveCollateral

0 commit comments

Comments
 (0)