From 90aa429000ecf227db84310d687fe72a08d94dd6 Mon Sep 17 00:00:00 2001 From: Jacob Eliosoff Date: Mon, 5 Apr 2021 23:00:32 -0400 Subject: [PATCH] Forgot to update test 04 for the new DECAY_PER_SECOND math. --- test/04_Proxy_Eth.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/04_Proxy_Eth.test.js b/test/04_Proxy_Eth.test.js index 5fa0bca..336641c 100644 --- a/test/04_Proxy_Eth.test.js +++ b/test/04_Proxy_Eth.test.js @@ -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", ) })