GTranche

Verified contract

Active on Ethereum with 3 txns
Deployed by via 0xa38a4a7f at 16697441
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
0x0e7eb62203859cad72e342167d50ef382c2f33e9351f79eb92774fb1ee550a4e
0x349fe9dcedf6285d49dd4af92b284c53a630a64ee5948b67e1293b54d8b4c8f1
0x6d297ee8ccd494b6e29cf93400ec84f4450b1885b3a6c88cfd408c3a61ec75d1

Functions
Getter at block 21326790
NO_OF_TOKENS(view returns (uint256)
1
NO_OF_TRANCHES(view returns (uint256)
2
 
gTokenTotalAssets(view returns (uint256)
getYieldTokenValues(view returns (uint256[1] values)
[2020764933655804008590778]
hasMigrated(view returns (bool)
false
hasMigratedFromOldTranche(view returns (bool)
true
minDeposit(view returns (uint256)
1000000000000000000
oracle(view returns (address)
0x7d412e8df10a7ca21a978e571583a5820b66dccd
owner(view returns (address)
0x359f4fe841f246a095a82cb26f5819e10a91fe0d
pnl(view returns (address)
0x271d1b123932b5b469aabc9c5b870d2a744861e6
 
pnlDistribution(view returns (uint256[2] newTrancheBalancesint256 profitint256 loss)
 
utilisation(view returns (uint256)
utilisationThreshold(view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
Read-only
getTrancheToken(bool _trancheview returns (address trancheToken)
getYieldToken(uint256 _indexview returns (address yieldToken)
getYieldTokenDecimals(uint256 _indexview returns (uint256 decimals)
tokenBalances(uint256view returns (uint256)
trancheBalances(boolview returns (uint256)
State-modifying
deposit(uint256 _amountuint256 _indexbool _trancheaddress _recipientreturns (uint256 trancheAmountuint256 calcAmount)
finalizeMigration(
migrate(address _oldGTranche
migrateFromOldTranche(
prepareMigration(address _newGTranche
renounceOwnership(
setPnL(address _pnl
setUtilisationThreshold(uint256 _newThreshold
transferOwnership(address newOwner
withdraw(uint256 _amountuint256 _indexbool _trancheaddress _recipientreturns (uint256 yieldTokenAmountsuint256 calcAmount)
Events
LogMigration(uint256 JuniorTrancheBalanceuint256 SeniorTrancheBalanceuint256[] YieldTokenBalances
LogMigrationFinished(address newGTranche
LogMigrationPrepared(address newGTranche
LogNewDeposit(address indexed senderaddress indexed recipientuint256 amountuint256 indexbool indexed trancheuint256 calcAmount
LogNewPnL(int256 profitint256 loss
LogNewTrancheBalance(uint256[2] balancesuint256 _utilisation
LogNewUtilisationThreshold(uint256 newThreshold
LogNewWithdrawal(address indexed senderaddress indexed recipientuint256 amountuint256 indexbool indexed trancheuint256 yieldTokenAmountsuint256 calcAmount
LogSetNewPnLLogic(address pnl
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address[] _yieldTokensaddress[2] _trancheTokensaddress _oracleaddress _gMigration
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyMigrated(
IndexTooHigh(
MsgSenderNotTranche(
NoAssets(
NotEnoughBalance(
UtilisationTooHigh(