mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
21 lines
856 B
TypeScript
21 lines
856 B
TypeScript
import BigNumber from 'bignumber.js';
|
|
|
|
export const TEST_SNAPSHOT_ID = '0x1';
|
|
|
|
// ----------------
|
|
// MATH
|
|
// ----------------
|
|
|
|
export const WAD = Math.pow(10, 18).toString();
|
|
export const HALF_WAD = new BigNumber(WAD).multipliedBy(0.5).toString();
|
|
export const RAY = new BigNumber(10).exponentiatedBy(27).toFixed();
|
|
export const HALF_RAY = new BigNumber(RAY).multipliedBy(0.5).toFixed();
|
|
export const WAD_RAY_RATIO = Math.pow(10, 9).toString();
|
|
export const oneEther = new BigNumber(Math.pow(10, 18));
|
|
export const oneRay = new BigNumber(Math.pow(10, 27));
|
|
export const MAX_UINT_AMOUNT =
|
|
'115792089237316195423570985008687907853269984665640564039457584007913129639935';
|
|
export const ONE_YEAR = '31536000';
|
|
export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
export const ONE_ADDRESS = '0x0000000000000000000000000000000000000001';
|