This commit is contained in:
owen05
2021-02-02 18:55:22 +08:00
parent 0a8247befc
commit f0ec1fa756
2 changed files with 15 additions and 2 deletions

View File

@@ -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)
});

View File

@@ -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