Skip to content

Commit

Permalink
changed decimals to zero and updating test-cases (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftyeightandeight committed Nov 5, 2021
1 parent 02bb229 commit 1720eea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clarity/contracts/token/token-usda.clar
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)

(define-read-only (get-decimals)
(ok u2)
(ok u0)
)

(define-read-only (get-balance (account principal))
Expand Down
2 changes: 1 addition & 1 deletion clarity/contracts/token/token-wbtc.clar
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)

(define-read-only (get-decimals)
(ok u8)
(ok u0)
)

(define-read-only (get-balance (account principal))
Expand Down
6 changes: 3 additions & 3 deletions clarity/tests/flash-loan_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const conversion_ltv = 0.95e+8
const bs_vol = 0.8e+8
const moving_average = 0.95e+8

const wbtcPrice = 50000e+8
const wbtcPrice = 50000

const weightX = 0.5e+8
const weightY = 0.5e+8
Expand All @@ -52,9 +52,9 @@ Clarinet.test({
let FLTest = new FLTestAgent1(chain, deployer);

let call = await FLTest.getBalance(wbtcAddress, wallet_1.address);
let position:any = call.result.expectOk().expectUint(2000000000000);
let position:any = call.result.expectOk().expectUint(200000000000000000000);
call = await FLTest.getBalance(usdaAddress, wallet_1.address);
position = call.result.expectOk().expectUint(200000000000);
position = call.result.expectOk().expectUint(20000000000000);

let result = FWPTest.createPool(deployer, wbtcAddress, usdaAddress, weightX, weightY, fwpwbtcusdaAddress, multisigfwpAddress, Math.round(500000e+8 * ONE_8 / wbtcPrice), 500000e+8);
result.expectOk().expectBool(true);
Expand Down

0 comments on commit 1720eea

Please sign in to comment.