Skip to content

Commit

Permalink
Merge pull request #148 from usmfum/fix/abdk-decay-per-second
Browse files Browse the repository at this point in the history
Forgot to update test 04 for the new DECAY_PER_SECOND math.
  • Loading branch information
jacob-eliosoff authored Apr 6, 2021
2 parents 90f6a2c + 90aa429 commit 390dd02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/04_Proxy_Eth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ contract('USM - UsmWethProxy - Eth', (accounts) => {
})

it('allows minting USM by sending ETH, if minUsmOut specified but met (2)', async () => {
await web3.eth.sendTransaction({ from: user1, to: usm.address, value: '1000000000000010206' }) // Returns >= 102.06 USM per ETH
await web3.eth.sendTransaction({ from: user1, to: usm.address, value: '1000000000000010254' }) // Returns >= 102.54 USM per ETH
})

it('does not mint USM by sending ETH, if minUsmOut specified and missed (1)', async () => {
await expectRevert(
web3.eth.sendTransaction({ from: user1, to: usm.address, value: '1000000000000010207' }), // Returns < 102.07 USM per ETH
web3.eth.sendTransaction({ from: user1, to: usm.address, value: '1000000000000010255' }), // Returns < 102.55 USM per ETH
"Limit not reached",
)
})
Expand Down

0 comments on commit 390dd02

Please sign in to comment.