diff --git a/test/vDODO/mintRedeem.test.ts b/test/vDODO/mintRedeem.test.ts index 24bd0fe..cbbbaa8 100644 --- a/test/vDODO/mintRedeem.test.ts +++ b/test/vDODO/mintRedeem.test.ts @@ -5,8 +5,6 @@ */ -// import * as assert from 'assert'; - import { decimalStr, MAX_UINT256 } from '../utils/Converter'; import { logGas } from '../utils/Log'; import { VDODOContext, getVDODOContext } from '../utils/VDODOContext'; @@ -53,6 +51,15 @@ describe("VDODO", () => { //alpha lastRewardBlock 状态 //user superior info 状态 //vDODO 总量变化,以及vDODO合约dodo余额,user dodo余额 + var b_alpha = await ctx.VDODO.methods.getLatestAlpha().call(); + var b_lastRewardBlock = await ctx.VDODO.methods.lastRewardBlock().call(); + var b_dodo_contract = await ctx.DODO.methods.balanceOf(ctx.DODO.options.address).call(); + var b_dodo_account = await ctx.DODO.methods.balanceOf(account0).call(); + + var userInfo = await ctx.VDODO.methods.userInfo(account0).call(); + + console.log("userInfo:", userInfo) + }); diff --git a/truffle-test.sh b/truffle-test.sh index b3c15f4..3f5940a 100644 --- a/truffle-test.sh +++ b/truffle-test.sh @@ -36,6 +36,12 @@ then truffle test ./test/V2Proxy/proxy.twap.test.ts fi +if [ "$1"x = "vdodo-mintRedeem"x ] +then + truffle test ./test/vDODO/mintRedeem.test.ts +fi + + # if [ "$1"x = "route-incentive"x ] # then # truffle test ./test/Route/Incentive.test.ts